WordPress.org

Support

Support » How-To and Troubleshooting » Specific posts shown on top of each category

Specific posts shown on top of each category

  • Hi there!
    I have a site with lots of categories, and there will be losts of posts in each.
    I want a specific post (kind of description of each category… text and images) to be shown on top of each category. diferent post for each category.
    might be the fist written, might be the 20th…
    is there a plugin that lets me do this? select the post i want to be shown fist, on top of each category?
    or.. can some help me with some codes?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi raduma,

    I haven’t seen a plugin for this yet, but I guess modifying your category-template might do well:

    <?php
    if ($cat == "1") { include(TEMPLATEPATH . "/teaser/this-code-snippet.php"); }
    if ($cat == "2") { include(TEMPLATEPATH . "/teaser/that-code-snippet.php"); }
    ?>

    This way you are free to use any serverside-language to generate your info. On the other hand: Thats might well be a lot of work…
    Greetings,

    sefzig

    iap, a lot of work..:| there are about 200 categs so far (one for almost each animal and bird in Romania…) and i still have to put up some… fish, plants, insects… so you can imagine hou much work… 🙁

    take a look at:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Specific posts shown on top of each category’ is closed to new replies.
Skip to toolbar