Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tugbucket

    (@tugbucket)

    Thread Starter marcel1985

    (@marcel1985)

    Yes!! I even found this code:

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code has been permanently damaged/corrupted by the forum’s parser.]

    <?php
    $categories = get_the_category();
    $separator = ' ';
    $output = '';
    if($categories){
    	foreach($categories as $category) if($category->parent == 84) {
    		$output .= '<a>term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator;
    	}
    echo trim($output, $separator);
    }
    ?>

    That would be the best option cause I can exlcude some.. But I don’t know how and where to put it so it displays on the bottom of Every Post! Perhaps someone can help me putting this in a sort of shortcode?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show only category related to that post’ is closed to new replies.