Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sudar Muthu

    (@sudar)

    You have to modify the get_posts_by_tag() function to output the category as well.

    Thread Starter cfabrice

    (@cfabrice)

    Thank you !
    I’ve tried to change line 663 from $output .= '<a href="' . get_permalink($post) . '">' . $post->post_title . '</a>';
    to this $output .= '<a class="' . implode(' ',get_post_class()). '" href="' . get_permalink($post) . '">' . $post->post_title . '</a>';
    And I get my classes in the code, but it’s always the same ones from the same post…
    any idea why ?

    Plugin Author Sudar Muthu

    (@sudar)

    Change this

    get_permalink($post) . '">' . $post->post_title . '</a>';
    to this $output .= '<a class="' . implode(' ',get_post_class()). '" href="' . get_permalink($post) . '">' . $post->post_title . '</a>';

    to

    get_permalink($post) . '">' . $post->post_title . '</a>';
    to this $output .= '<a class="' . implode(' ',get_post_class('', $post->ID)). '" href="' . get_permalink($post) . '">' . $post->post_title . '</a>';

    Thread Starter cfabrice

    (@cfabrice)

    Thank very much you it works perfectly !
    Great plugin, very handy !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Posts By Tag] display post category classes in outputted code’ is closed to new replies.