SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict avstu's Avatar
    Join Date
    May 2005
    Posts
    297
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Edit Category Page

    Is it possible to add a advertisement/custom text to a category page so it only shows on that category and not others?

    I would like it to show on this page

    http://avillafan.com/site/category/transfer-rumours/

    Any help would be much appreciated.

  2. #2
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    In the page you use to display your categories, add a conditional to your loop.

    Something like:

    <?php if (in_category('transfer-rumors')) { ?>
    <!-- my ad goes here -->
    <?php } ?>
    Maleika E. A. | Rockatee | Twitter | Dribbble




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •