• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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

  • Page Template To Show All Posts From Categories With Category Description
  • Display Featured Images From Posts In Each Category On 1 Page
  • Remove Posts From Displaying On Home Page
  • 5 Ways To Exclude Posts In Specific Categories From Displaying

pre_get_posts

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems