Limiting Number of Featured Posts in WordPress Theme Twenty Fourteen

theme twenty fourteen feature posts

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.

Upgrade to Ubuntu 11.10 problem: Waiting for network configuration then black screen solution


Have you just upgraded to Ubuntu 11.10 and now getting the “Waiting for network configuration” message followed by “Waiting up to 60 seconds more for network”? This then might be accompanied by a black blank screen or screen with text “Booting Ubuntu without full network configurations”?

[update] I’ve updated this post to reflect the copy step mentioned in the bug post below is surplus as /run is mounted tmpfs – the refined steps are below. The fix is removing the old /var/run and /var/lock then pointing those old locations to /run and /run/lock respectively. I’m suspecting this bug only comes about after an upgrade from your existing session (e.g. apt-get dist-upgrade) where it must have trouble removing these directories because existing services have files needed in there.

The bug is here ( and the fix is based on this: :

  1. Hit Ctrl+Alt+F1 at the blank screen to get you to a non-X terminal (tty1)
  2. Login in with your username and password
  3. Change to root with: sudo -i and enter your password
  4. mkdir -p /run /run/lock
  5. rm -rf /var/run /var/lock
  6. ln -s /run /var
  7. ln -s /run/lock /var
  8. reboot

You should have 11.10 back again.