Support » Theme: Boardwalk » Ordering Posts on the Main Page

  • Resolved chimedm

    (@chimedm)


    Hi there!

    Is there a way I can order the posts that show up on the main page? Currently they are ordered in the way I created them, but I would like them arranged differently.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    WordPress orders the blog page in reverse chronological order, so the easiest way to put them in a specific order that is to modify the publication date of each post.

    Let me know if this does the trick.

    Thread Starter chimedm

    (@chimedm)

    That worked, thank you! And is there also a way to make only one category of posts display? That way I can make sure they don’t change every time a blog post is added.

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    There are a couple of routes you could go, both involving plugins.

    The blog is really meant for an information flow that’s regularly added to, but it sounds like you might be using it differently. If you give me a bit more context about what you’re doing, it might be able to suggest the best route more easily.

    Thread Starter chimedm

    (@chimedm)

    Sure!

    So, what I’m doing is using the layout of the home page as a nav bar to the main areas of the site. So I’m wanting to limit the posts shown on the homepage carousel to a certain category (one that won’t change too much).

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Ah, I see! The easiest route might be to use a category exclusion plugin to exclude posts in certain categories from displaying on the homepage. For example:

    https://wordpress.org/plugins/ultimate-category-excluder/

    You’d have to adjust its settings every time you add a new category you want to exclude from the homepage.

    The more complex route would be creating a child theme and hard-coding the category to display in the front page loop.

    Making a child theme means your changes won’t be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:

    http://codex.wordpress.org/Child_Themes
    https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

    Going either of these routes would mean there’s no way for readers to access posts in other categories, unless you link to them in some other way, such as a widget, category menu link, etc.

    • This reply was modified 4 years, 5 months ago by Kathryn. Reason: edits for clarity
    Thread Starter chimedm

    (@chimedm)

    That category exclusion plugin will probably work great! But if too many categories are needed/being created, I’ll probably do the child theme. Thank you!

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    My pleasure, good luck with it!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ordering Posts on the Main Page’ is closed to new replies.