Display only tags in the url on tags.php
-
Hello,
I have a url, https://mysite.com//tag/symphony-orchestra+2000-2001-season/. I have these two tags + others tagged on my post, but I only want the one or two tags being passed in the url to be displayed on the tags.php page. Right now it is only displaying the first tag before the ‘+’, how can I get it to display both tags. This is my code.
<?php $current_tag = $_GET['tag']; ?> <?php $current_category = single_cat_title("", false); ?> <?php echo $_GET['tag']; $categories = single_term_title("", false); if ( ! empty( $categories ) ) { echo '<h1>'.$categories.'</h1>'; echo '<p>'.category_description( $category_id ).'</p>'; } ?>
I have tried using the_tags(), but that displays all tags, even ones that are not in the url.
Any Idea?
Thanks,
Aaron
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display only tags in the url on tags.php’ is closed to new replies.