We have some posts on our Wordpress website and we wanted to put tags on the bottom, so I used:
<p><?php the_tags(); ?></p>
And it worked sort of. The problem is it links to for example:
But that just shows the home page (/tag/foo doesn't exist). How do I get my tags to list articles/posts with that tag or some sort of search/category view?
Do you have a tag page set in your theme? It sounds like its defaulting to the index.php. See the order here, #5 is index.php: http://codex.wordpress.org/Tag_Templates .
Do you have a tag.php file?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.