WordPress.org

Ready to get started?Download WordPress

Forums

Display posts that are related by category in sidebar (6 posts)

  1. userofwordpress
    Member
    Posted 2 years ago #

    I am a new WordPress user using the Verticle theme by dessign.net.
    When a visitor opens a post, a group of posts are displayed in a sidebar to the right. Currently, these posts are chosen at random. I would prefer that the posts shown in the sidebar share at least one category with the post being viewed so that the content is related. Others have posed similar questions but I have not found a clear answer to mine. I believe I must alter the sidebar.php file and I think specifically the line that reads: 'orderby' => 'rand' however I doubt it is as easy as changing 'rand' to something like 'category'. Please advise.

  2. David Choi
    Member
    Posted 2 years ago #

  3. userofwordpress
    Member
    Posted 2 years ago #

    Thanks for your suggestion. I am looking for a way to control the posts that are displayed in the sidebar (as on the right side of this page: http://www.dessign.net/verticaltheme/do-all-things/). The plugins you linked to seem only to generate a list of related posts rather than control the selection of those displayed in the sidebar. I am surprised that this is not a built-in feature and that I am having such difficulty in finding a solution.

  4. David Choi
    Member
    Posted 2 years ago #

    I think I have seen something similar, can't remember the name. You might wanna take your time and dig into

    http://wordpress.org/extend/plugins/

  5. userofwordpress
    Member
    Posted 2 years ago #

    Thanks, I'll take a look.

  6. Asif Mushtaq
    Member
    Posted 1 year ago #

    Hope this plugin will be helpful for you. :) http://wordpress.org/extend/plugins/random-related-posts/

Topic Closed

This topic has been closed to new replies.

About this Topic