• Resolved sha12sha

    (@sha12sha)


    Hi,

    I have found a code to show post from child categories that works perfect,

    but I don’t need the link to the category. How can I remove it? Thanks

    echo '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name. '</a> ';

Viewing 2 replies - 1 through 2 (of 2 total)
  • the code u put displays a link to the category , so remove it if you don’t want the link to show and if you just want the name of the category then replace it with :
    echo $term->name;

    Thread Starter sha12sha

    (@sha12sha)

    Thank you so much! Just perfect ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I remove this link?’ is closed to new replies.