WordPress.org

Ready to get started?Download WordPress

Forums

how to display archives - of each category on "single post" page (4 posts)

  1. nonstopcinema
    Member
    Posted 7 years ago #

    Hi.. my blog is http://www.nonstopcinema.com/site is more like a portal. I have a lot of categories. I am using the blix theme right now.

    The problem is.. In the "singlepost" page where the posts are displayed I have a code <?php BX_archive(); ?>

    It displays the last 5 posts from all categories put togather. I want to display the last 5 posts only of that respective category. suppose the post is about news, it should show last 5 news-posts in the archives, and the last 5 posts in all categories. Is it a complex thing? I am intermediate user. Kindly help.

    Thanks,
    Venkat.

  2. tsguitar
    Member
    Posted 7 years ago #

    Your single post template should only show a single post, not 5 of them. Are you mistaking that with an archive template? I'm not clear on what you want happening and on what page.

    Change bx_archive() to the_content() and see what happens.

    Did you delete archive.php or something? When I visit other people's blix-based site (http://unclehulka.com/ryan/blog/categories/amusing/), category archives display only entries from that archive.

  3. nonstopcinema
    Member
    Posted 7 years ago #

    Hmm.. The "singlepage.php" is supposed to show the article. After the article is over, I want to give link to the last 5 posts only from that category. Blix shows the last 5 posts from all categories put togather. I am game for downloading any widget too.. Thanks for the reply BTW.

  4. nonstopcinema
    Member
    Posted 7 years ago #

    I mean if a post from "gossip" category is being displayed.. below the post/article, only the previous 5 articles from "gossip" should be shown and vice-versa for all other categories. Suppose I go to another page filed under "reviews" - in the "recent posts" it shows me posts from all other categories instead of jus "reviews".

    I dunno if I'm clear. Any of da pros - kindly help.

Topic Closed

This topic has been closed to new replies.

About this Topic