Tag Info

Hot answers tagged


As said in a comment, you can do this in one query. The principle here is to only display the date heading if the post date's month of the previous post does not match that of the previous post FEW NOTES Before I start, a few notes: Never use query_posts, except if you really need to break everything on a page. It not just reruns the main query and also ...


Updated Answer After thinking about the comment from @PieterGoosen below I've added a method of achieving the you goal by using a single query. I benchmarked the methods and the single query is faster, with the multiple query method being about 15% slower. Not a hugh margin, but every little helps, and to be honest the method can probably be refined ...


I figured this out. For anyone facing the same issue, I ended up using this code instead: function hi_customization_options( $wp_customize ) { $wp_customize->add_section( 'landing_page_image', array( 'title' => 'Landing Page Image', 'priority' => 35, ) ); $wp_customize->add_setting( ...


I looked for a solution too, but it's too complex. I purchased a plugin: http://codecanyon.net/item/swift-security-the-ultimate-wordpress-protection/10143693 before this I used this WP Hide (http://codecanyon.net/item/wordpress-hide-option/228461), but Swift Security much better. I hope it helped.


This code will do the job. add_action('customize_register', 'themename_customize_register'); function themename_customize_register($wp_customize) { $wp_customize->remove_section( 'static_front_page' ); } It will remove Static Front Page option. Details here

Only top voted, non community-wiki answers of a minimum length are eligible