Limiting Number of Featured Posts in WordPress Theme Twenty Fourteen

AA, I am back after a looong time. Today i was updating my blog, themes, widgets etc. So i encountered a limitation of new WordPress theme Twenty Fourteen which is you can’t change number of featured posts in grid. So, after a long struggle i was able to find the solution. Here it is, how you limit number of featured posts in grid of WordPress theme Twenty Fourteen;

Edit the file: {wordpress-home-folder}\wp-content\themes\twentyfourteen\functions.php and edit the following block:


// Add support for featured content.
add_theme_support( 'featured-content', array(
'featured_content_filter' => 'twentyfourteen_get_featured_posts',
'max_posts' => 6,
) );

I changed it to ‘max_posts’ => 3. Hope this would work for you.

Best regards.

4 Replies to “Limiting Number of Featured Posts in WordPress Theme Twenty Fourteen”

  1. I updated functions.php like you suggested, and like it was suggested elsewhere, but it doesn’t work. I have to manually make sure there are no more than 3 posts with the tag ‘featured’.

    Not sure why it’s not working.

  2. Note that posts set is cached in transient, so need to got to customizer and re-save for the new count value to be applied.

  3. Bro this worked for me… thanx… But i still have some problems and queries regarding this theme… hope that i’ll get some help from you.. plz do e-mail me… thank you…

Leave a Reply

Your email address will not be published. Required fields are marked *

Connect with Facebook