Support » How-To and Troubleshooting » [Resolved] How can I remove this link?
4 years, 3 months ago
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> ';
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 :
Thank you so much! Just perfect 🙂