WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Fourteen
Possible to use Grid-Layout to display all posts on homepage? (5 posts)

  1. mfapsj
    Member
    Posted 7 months ago #

    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.

    http://wordpress.org/themes/twentyfourteen/

  2. JohnWilbanks
    Member
    Posted 7 months ago #

    I would like to know this as well...

  3. comiccom
    Member
    Posted 7 months ago #

    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.

    http://codex.wordpress.org/Class_Reference/WP_Query 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 http://www.thecomic-community.com

  4. comiccom
    Member
    Posted 7 months ago #

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

  5. mfapsj
    Member
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Theme

About this Topic