hi im using a WP image slider plugin – s3 slider – and it seems i have to put the code in the template index file – but this is not where i want to put it – because it means that it will appear on the blog posts page… I have created a page and made it the static front page and this is where i want to put the php code for the image slider…. how do i do this? Im still getting to know a bit of php but not much. do i have to put the code in the page file and create an if statement? My static front page is called ‘home’ – please help.
this is the code for the slider:
<?php if (function_exists(s3slider_show())) { s3slider_show(); } ?>
Your help is greatly appreciated. 
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Item was Featured
- Author had a Free File of the Month
- Author was Featured
- Bought between 10 and 49 items
- Europe
- Exclusive Author
- Has been a member for 4-5 years
- Referred between 100 and 199 users
Just put the line of code in your page.php(or if you want to use a page template) and set this in your (goto) settings->reading-> A static page ->Front page: select the one that you want to use.
The line that you have/will use is already an if statement
So copy past it in to the page.php and it should work.
Hi! if you want to show only in your homepage or front page use tags “is_home” or “is_front_page” see this article http://codex.wordpress.org/Conditional_Tags
<?php if (function_exists(s3slider_show()))
and is_home() ) {
s3slider_show(); } ?>
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Item was Featured
- Author had a Free File of the Month
- Author was Featured
- Bought between 10 and 49 items
- Europe
- Exclusive Author
- Has been a member for 4-5 years
- Referred between 100 and 199 users
or you can use a conditional in your index to show it just on “homepage”.
<?php if (function_exists(s3slider_show()))
and is_home() ) {
s3slider_show(); } ?>
Damm i forgot to mention this 
or you can use a conditional in your index to show it just on “homepage”.
<?php if (function_exists(s3slider_show()))
and is_home() ) {
s3slider_show(); } ?>
hi thanks for this, but its not working…. the part ‘is_home’ – is it case sensitive? My front page is ‘Home’ ....
Sorry if this is a silly question, really appreciate your help.
okay, this is still not working…. do i have to put this code in the index.php file or the page.php file?
OK GUYS !!! i got it working! i had to put the code in the page.php file and not index.php
You guys are great!!! I’d buy you all pizza! 
the code is working and for index.php, but you are using now a static page as your first page (page.php)
hey people i could use your help again 
while its working now – the slider displays on ALL PAGES except the blog page…. i only want the slider to display on the static page that i have made the front page (home)....
any help?
