3 Ways To Display Posts In One Category On Front Page of Genesis

This is a beginners guide to setting up what posts display on the front page of your site.

If you only want to display posts from one category on your front page, please follow these simple steps:

If that’s the case, you can:

  1. Create a new page
  2. Select the blog page template from the drop down menu under Page Attributes
  3. Publish your new blog page
  4. Go to Settings > Reading and under > Front page > a static page > select the blog page as your front page.

front page displays

Then go to Genesis > Theme Settings > Blog Page Template > Display which category > Select the category of posts you want to display.

blog page template

You can also choose to displays posts from all categories and then exclude the i.d’s for the categories you don’t want to show on your home page.

Create Page Template For One Category

You can also create a very basic custom blog page template using code like this.

Custom Function

Another option is to use a custom function in your child themes functions file:

function home_one_category( $query ) {
    if ( $query->is_home() AND $query->is_main_query() AND ( ! is_admin() ) ) {
        $query->set( 'cat', 'your category I.D Here' ); 
}
}
add_action( 'pre_get_posts', 'home_one_category' );

Simply replace your category I.D Here in the code above with your category I.D.

Other Options

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.