Any one who have published WordPress theme for WordPress official theme store, knows that it would take at least two months to get approved from WordPress theme reviewers team ( unless you are a member of theme reviewers and has the capability to pick the tickets yourself ).
Every newly submitted themes will have to go through four stages of theme reviewing process, before getting published in WordPress Theme Store
- New
- Reviewing
- Approved
- Live
Well if you are an experienced WordPress theme developer, probably your theme will get approved in first attempt ( of course you would have developed a lot of themes ).
If this is your first WordPress theme then there are chances to stuck at “Reviewing” stage, where you need to fix those issues reported by reviewer and re upload, which will further delay your theme from going live.
If you are deriving your theme from WordPress official themes ( Twenty Twelve, Twenty Fourteen … ) then you probably out of danger, but if you built your theme from the scratch then you may have to consider many scenarios.
I would like to share my experiences, which might help you to prevent some of those common issues.
1. Demo content
After setting up your WordPress local environment, download the test data from here and import it into your development WordPress.
2. Templates, Styles and Other must included files
style.css header.php footer.php index.php page.php search.php single.php comments.php sidebar.php 404.php functions.php screenshot.jpg ( or png ) readme.txt
3. Structure and Style Checkup
This is one important scenario but there is an easy way to handle it. Download your favorite theme from WordPress theme store and upload it in your local development environment, and visit all the pages and posts using both themes, this way you can figured it out what are the styles and features you have missed in your development theme.
make sure the following items are implemented in your themes
- Style for all HTML tags ( for Title, Content and Comments )
- Proper styles for Featured Image, Left aligned, Center aligned, Right aligned and Full width Images
- Pages with pagination
- Comments with Pingbacks and Tracbacks
- Post without Title
- Posts and Pages with Password Protected
4. Namespace
Make sure all of your custom functions and global variables are prefixed with your theme slug name ( functions.php as well as any custom php file included by you ).
function {your_theme_slug_name}_setup() { register_nav_menu( 'primary', 'Primary Menu' ); } add_action( 'after_setup_theme', '{your_theme_slug_name}_setup' );
5. Debug Mode
Enable debug mode by setting WP_DEBUG flaq to “true” define('WP_DEBUG', true);
which is located at your wordpress wp-config.php
file. Now visit all pages and wp-admin, if you find any php warning message fix those issues.
6. Enqueue Styles & Scripts
Always use WordPress wp_enqueue_style
and wp_enqueue_script
to include your css and js files. never include script or style sheet directly into your templates.
8. Placing wp_head and wp_footer
Always place wp_head()
function right before the end of tag and
wo_footer()
function right before the end of