开发者

Change behavior of Wordpress Tags

I'm running a wordpress blog. When I click on a tag, it takes me to a new page with the headline of a relevant post. However, you have to click on the headline to see the actual post. I was hoping that if you click the tag in the tag cloud, it will show the headline and post/post pic immediately.

Is there a 开发者_StackOverflowway to change the behavior of the tags?


That's Wordpress default behavior: you're going to the tag archive page to select the post, because WP assumes - and rightly so - that you will have more than one post with any one particular tag. You need the tag archive page to select the post.

If you have only one tag per post, or one post with one tag, and will stay with that posting habit, than you can do what you want to do: see the full post per tag. Go to tag.php and change the_excerpt to the_content to see the whole post on tag.php rather than the excerpt.

http://codex.wordpress.org/Function_Reference/the_excerpt

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜