How to get display-posts to work with tags with spaces? [display-posts tag="tag with spaces&quo
-
When I try to use [display-posts tag="any tag with spaces"], nothing comes up. I tried replacing the spaces with %20 and , but I still get nothing.
Many of my tags have spaces. What’s the workaround?
thanks,
JohnThe blog I need help with is: (visible only to logged in users)
-
Hey John,
I took a look at your site (http://dreadunicorngames.com/) and I see tags with spaces displayed on your posts.
Could you explain your goal to me, and I maybe able to help further?
Looking forward to hearing from you. Thanks very much.
-
Thanks.
Tags with spaces work as tags. When I use those tags with the [display-posts tag=""] shortcode they fail.
Check out: http://dreadunicorngames.com/look/
When using the tags “13th Age” and “The Sun Below”, the shortcode returns nothing. Both should return multiple posts.
Thanks!
-
Hey John,
Thanks for the explanation. Very helpful. I see the trouble you’re having. You are using the the Tag’s title, rather than the actual slug.
Your shortcode should read [display-posts tag="the-sun-below"]
You’ll find the slug names for your Tags here (in the Slug column):
https://dreadunicorngames.wordpress.com/wp-admin/edit-tags.php?taxonomy=post_tag&paged=2I hope this helps! If you have any other concerns, drop me a note. Thanks much!
-
-
- The topic ‘How to get display-posts to work with tags with spaces? [display-posts tag="tag with spaces&quo’ is closed to new replies.