WordPress.org

Ready to get started?Download WordPress

Forums

manipulating a posts categories (2 posts)

  1. Brian Santalone
    Member
    Posted 7 years ago #

    after a posting i have a set of categories which im using to display data on different parts of my site, but some of these TAGS need to be hidden.. the following code hides 1 category but i am unsure of how to edit this to put 3 categories in it.

    <?php
    foreach((get_the_category()) as $cat) {
    if ($cat->cat_ID != "19") {
    echo 'cat_ID . '">' .
    $cat->cat_name . '
    , ';
    }
    }
    ?>

  2. Brian Santalone
    Member
    Posted 7 years ago #

    PLEASE help!!!! this is the last thing i need to get my site up and running..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags