Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ronvil

    (@ronvil)

    it’s working now. i needed to update the php, wordpress installation and the plugin as well to get it to work.

    thanks

    Sorry for posting again. i would like to clarify my question above.

    for example, i have the following categories

    1. Category 1
    1. Category 1.1
    2. Category 1.2
    3. Category 2

    Then, under the post title, i want to put a link to the category archive for “Category 1.1” ONLY and not have the other categories of the same post appear. How do i do this? thanks again!

    Sorry, but i’m just beginning to customize wordpress themes. how can i edit

    <?php
    foreach((get_the_category()) as $category) {
        if (!in_array($category->cat_name,array('cat1_to_exclude','cat2_to_exclude','cat3_to_exclude')) ) {
        echo '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> ';
    }
    }
    ?>

    to exlude the categories that i do not want to appear? Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)