Show PHP Code Only On Homepage
-
I have some PHP code being generated by a plugin and I would like this code only to be run on the homepage. I.E. When I click on the “Older Posts” link I would like the plugin to NOT appear.
As usual I’ve gone through the codex and searched google and none of the solutions I have found have worked for me.
Here is the generated code:
<?php if( function_exists('FA_display_slider') ){ FA_display_slider(53); } ?>
Here is one of the solutions I have tried with no avail:
<?php if (is_home()) { ?> <?php if( function_exists('FA_display_slider') ){ FA_display_slider(53); } ?> <?php } ?>
Does anyone have any idea how I could get this working correctly?
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show PHP Code Only On Homepage’ is closed to new replies.