Support » Theme: Twenty Fourteen » Possible to use Grid-Layout to display all posts on homepage?

  • I was wondering if there was a way to use the built-in grid layout option to display all posts in a grid on the homepage and when viewing the archives for specific categories and specific post formats. Thank you.

    Twenty Fourteen

Viewing 4 replies - 1 through 4 (of 4 total)
  • I would like to know this as well…

    you guys ready for this one?
    open up inc/featured-content.php

    // Query for featured posts.
    		$featured = get_posts( array(
    			'numberposts' => $settings['quantity'],
    			'category_name' => 'Comic',
    			'orderby'          => 'rand',
    		) );

    At this point, as long as theres nothing tagged as ‘featured’ all your posts should show up as normal. I’m working on getting that out of the code too.

    so just comment out whats in there currently for the code and put this in place. the order by picks a random order so if you only want recent posts you’ll need to change it.

    I have mine set for category name of comic for my comic site, you’ll have to modify it as you see fit or just remove the category field. this is where you can research it a bit more as I just did.

    if I make progress tonight i’ll have my whole site updated with this theme and my modifications. check it out if you please

    oh no, apparently this query also affects the order and randomness of the actual posts for everything! lmk if you figure out the rest.

    Thanks though. I wanted it to just display the latest posts and for that it was perfect!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Possible to use Grid-Layout to display all posts on homepage?’ is closed to new replies.