Things to keep in mind when creating Wordpress themes

I have been doing Wordpress themes for a year or two and constantly come up against what I need to keep in mind when trying to make my themes as compatible and flexible as possible with their settings, plugins, etc.

Is there a resource that stores a checklist of all “don't forget” Wordpress? What are you trying to consider when creating Wordpress themes?

Examples:

  • Verify that the author / admin has disabled comments for a specific post.
  • Remember the call wp_head()at the end of the tag <head>.
  • Remember the call wp_footer()at the end of the tag <body>.
  • Using variables bloginfo()instead of setting static values ​​for charset, html type, description, etc., therefore, administrators can change such things in the site settings.
  • Using function_exists()before calling the function from the plugin so that it does not fail gracefully if this plugin is not installed.
+5
source share
3 answers

There is an interesting topic in the Wordpress documentation regarding exactly what you are asking for: it is called Developing Themes for the Public Version . There are also general principles for developing topics . Templates article is great too.

I do not know other official resources, but it would be interesting to add additional information to these three guides. I am interested in some other answers that may arise in your question in order to complement them.

Wordpress, , , , ​​ bloginfo() , ​​ -.

+2

. WordPress-as-CMS, :

  • , .
  • , MagicFields, -.
  • (: -x.php)
  • css, , , ; ,
  • wp-admin , ..; , , .
  • wp_scripts wp_styles ; javascript, ( jQuery jQ script)
  • , , WordPress.
  • ; PHP4, PHP5, , . CodeIgniter ;
  • ( ) , , WP_Cache WP_Rewrite, $wpdb (, , ) , ( URL-) , .
  • , (html) (php); , WP, .
+2

WordPress WordPress MU, "" , , , , "" , .

, , , / WordPress. , , header.php, footer.php, index.php, home.php, single.php, functions.php, comments.php,/images (dir),/functions (dir), style.css,/css (dir),/scripts (dir) .

Yahoo Grids Google Blueprint css, css. /, , , .

0

All Articles