I want to try place external links in homepage. But i can't do this. For this i use widget logic plugin. But problem is that link also show in the older entries pages but i want to link show only homepage. Check this site: http://www.weightlosssolutionstips.com/ Where i place link under weight loss plan section but this link also show in the older entries pages. But i want its show only homepage. Please give me any idea how to put links in the homepage only in wordpress.
Wrap the link in the is_home() function. <?php if ( is_home() ) { // This is a homepage } else { // This is not a homepage } ?> PHP: See http://codex.wordpress.org/Function_Reference/is_home
Hey ArchAxis and b4db0y, would either of you be able to explain a in a bit more detail how I can set the links widget to only be on the homepage. I would assume the code mentioned above would work however after a bit of research I am not exactly sure how to use it. Any further help would be appreciated.
I don't know if it possible to do, I'd like to know as well. I use is_home() conditional tag for Dynamic menu highlighting in my theme, it also applied to the older entries pages. But if you set a static page as homepage, it's quite easy to achieve by using custom template with custom sidebar.
@thefizboshow you'll want to install this plugin http://wordpress.org/extend/plugins/widget-logic-visual/ it will visually allow you to set if conditions on any Widget without coding. Be sure to read and watch the installation instructions for Widget Logic and you'll understand how to use it.