WordPress.org

Ready to get started?Download WordPress

Forums

Specific posts shown on top of each category (4 posts)

  1. raduma
    Member
    Posted 7 years ago #

    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?

  2. sefzig
    Member
    Posted 7 years ago #

    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

  3. raduma
    Member
    Posted 7 years ago #

    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... :(

  4. Xamataca
    Member
    Posted 6 years ago #

    take a look at:

Topic Closed

This topic has been closed to new replies.

About this Topic