WordPress.org

Ready to get started?Download WordPress

Forums

Kontera - Exclude Category (2 posts)

  1. ashbaugh
    Member
    Posted 7 years ago #

    Hi,

    I'm going to install the Kontera text link ads in on my wp site. The documentation says to exclude a passage of text from being affected wrap the passage with:

    <span name="KonaFilter"></span>

    Here's what I'm trying to do. I want to exclude a particular category.

    How can I do something like...

    If category is testcategory
    Then
    Wrap with <span name="KonaFilter"></span>
    end if

    Thanks!

  2. Clicknathan
    Member
    Posted 6 years ago #

    <?php if (is_category('5')) { echo ('<span name="KonaFilter">'); } ?>

    Replacing the number 5 with the ID of the testcategory.

    Then do the same for the closing span tag should work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags