Trying to replace the slider that came with my theme
-
So I am doing my best to replace the slider that came with my theme. You can see my homepage at http://www.markcafiero.com, the old slider is behind the new slider, but the new slider isn’t showing any images, even though it is published and when I preview it from the slider page, it works.
Hoping someone can identify some of the flaws in the code here. Thanks
Here’s the index.php code as of now:
<?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(); } putRevSlider("TestSlider") ?>
[Your code may have been corrupted – as it was posted without using the code buttons]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Trying to replace the slider that came with my theme’ is closed to new replies.