Caching of SQL queries

WordPress will only do a database lookup the first time if the option hasn’t been auto-loaded or already accessed prior. The performance hit is negligible, however if you’re loading multiple separate options with a bunch of get_options instead of using the serialised option functionality, then the initial lookup * X number of separate option rows … Read more

Child Terms not Displaying on the Taxonomy Term Admin Screen

I’ve encountered this kind of problem when i was building some front end post / term creation form. The number oh the ‘Right Now’ dashboard shows the right number of term, but the new term doesn’t shows up in the taxonomy admin screen. The solution: delete_option(‘taxonomy-name_children’); where ‘taxonomy-name’ is the name of the taxonomy. Hope … Read more

List Parent page with sub pages

Found it thanks – thought I’d looked here but I must of missed it. http://codex.wordpress.org/Function_Reference/wp_list_pages#List_Sub-Pages

change the icon of a custom post type in WordPress to use twitter boostrap

I always like using this tutorial which would give you this code. <?php add_action( ‘admin_head’, ‘cpt_icons’ ); function cpt_icons() { ?> <style type=”text/css” media=”screen”> #menu-posts-POSTTYPE .wp-menu-image { background: url(<?php bloginfo(‘template_url’) ?>/images/YOURIMAGE.png) no-repeat 6px -17px !important; } #menu-posts-POSTTYPE:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image { background-position:6px 7px!important; } </style> <?php } ?>

How can i put image to come first than the title?

You can’t use the post content to add an image outside of the call to the_content(). If you want to look into implementing Post Thumbnails (i.e. Featured Images) into your Theme. Full implementation is outside the scope of a simple question-and-answer; however, in the end, your markup will change from this: <h1 class=”title”><a href=”https://wordpress.stackexchange.com/questions/87953/<?php the_permalink() … Read more