Jump to content

Recommended Posts

Hi, this is my first post here and I'm also new to php, as you are about to see.  :)

 

I have a WordPress Themed web site: www.markcafiero.com

I don't like the slider on the home page so I installed a new slider plugin which gives me the following instructions: 

How To Use:

* From the theme html use: <?php putRevSlider( "alias" ) ?> example: <?php putRevSlider("TestSlider") ?> 
For show only on homepage use: <?php putRevSlider("TestSlider","homepage") ?> 
For show on certain pages use: <?php putRevSlider("TestSlider","2,10") ?>
* From the widgets panel drag the "Revolution Slider" widget to the desired sidebar
* From the post editor insert the shortcode from the sliders table

So yes, I want to install on my home page, replacing the other.

I found index.php I assume that's the home page. The following is the index.php code. If you can tell me what to replace with the above php code, I'll award you the job.

Index.php:
<?php
/**
* The main template file.
*
* @package WordPress
*/

session_start();

if(isset($_SESSION['pp_homepage_slideshow_style']))
{
$pp_homepage_slideshow_style = $_SESSION['pp_homepage_slideshow_style'];
}
else
{
$pp_homepage_slideshow_style = get_option('pp_homepage_slideshow_style');
}
if(empty($pp_homepage_slideshow_style))
{
$pp_homepage_slideshow_style = 'flow';
}

if($pp_homepage_slideshow_style == 'youtube_video')
{
$_GET['mode'] = 'f';
}


get_header();

$pp_homepage_slideshow_cat = get_option('pp_homepage_slideshow_cat');
$homepage_items = -1;

$args = array( 
'post_type' => 'attachment', 
'numberposts' => $homepage_items, 
'post_status' => null, 
'post_parent' => $pp_homepage_slideshow_cat,
'order' => 'ASC',
'orderby' => 'menu_order',
); 
$all_photo_arr = get_posts( $args );


include (TEMPLATEPATH . "/templates/template-slider-".$pp_homepage_slideshow_style.".php");

if($pp_homepage_slideshow_style != 'fullscreen')
{
get_footer();
}
?>

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.