post slug inside query posts
-
Hi, i want to display all tags by its post slug.
So heres my code
<?php query_posts( 'tag=RIGHTHERE' ); while (have_posts()) : the_post(); the_content( 'Read more' ); endwhile; ?>
I want to display the post slug instead of RIGHTHERE
The Post Slug is right here
<?php $slug = sanitize_title( get_the_title(), $fallback_title ); echo $slug; ?>
Could anyone help me fixing this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘post slug inside query posts’ is closed to new replies.