[resolved] Display Select Category on front page (3 posts)

  1. DavidF88
    Posted 2 years ago #

    How would I only display posts on my front page from only a specific category?

  2. Frumph
    Theme Author

    Posted 2 years ago #

    2 choices,

    1. download a plugin that will let you do that without editing code.

    2. or edit code, specifically the functions.php file, search for this:

    function easel_init() {

    Inside that section is this line:

    //	$query->set('category__in', '8');

    Notice the // means it's commented out, you would uncomment it, and put where that 8 is the category # you want to display on the front page.

    ... then save.

    I left that commented out in the code so someone can do precisely what you're asking with relative ease.

  3. DavidF88
    Posted 2 years ago #

    Ahhh thanks Frumph. I was looking in all the wrong places to do that. Awesome!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.