WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. DavidF88
    Member
    Posted 1 year ago #

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

  2. Frumph
    Member
    Theme Author

    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.