Many WordPress users run into a weird situation where they aren’t sure how to only show a link on the home page of their blog/site. There are two simple ways to tackle this:
- Use our plugin. If you do use our plugin, make sure it is up to latest version (v3.2.8). Our plugin will automatically do this for you.
- If you choose to publish links manually, we suggest using a plugin to execute php like PHP Code Widget … this plugin will allow you to add a php widget where the link(s) should appear and an example code to put into the widget would be:
< ?php if(is_home() && !is_paged()) { ?>
< a href=”http://site.com”>Anchor Text< /a>
< ?php } ?>(be sure to remove the space between the < and ? in both places)