Search the Community
Showing results for tags 'wordpress wp'.
-
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(); } ?>