I am making a new wordpress theme for one of my site and I want to show “Recent Posts” only on the post pages, not on the homepage.
Is it possible to show Recent Posts on the sidebar on post pages only?
I am making a new wordpress theme for one of my site and I want to show “Recent Posts” only on the post pages, not on the homepage.
Is it possible to show Recent Posts on the sidebar on post pages only?
There are plugins such as these that are discussed on this blog:
http://www.techyard.net/control-wordpress-widget-visibility-widget-context-plugin/
I haven’t used this particular plugin so I can’t vouch for it. There are others like it which you can search for on the WordPress.org Extend Repository. I only use plugins that are well maintained and used by other users since I do not want to introduce instability or security flaws into my blog. So check it out before you use it.
Just use is_single():
if(is_single()){
//display recent posts
}
I think its no possible that you change only on post theme. Only one theme appear on full post.
I use the widget logic plugin to specify where widgets appear - http://wordpress.org/extend/plugins/widget-logic/