WordPress.org

Ready to get started?Download WordPress

Forums

Trying to replace the slider that came with my theme (2 posts)

  1. mcafiero
    Member
    Posted 1 year ago #

    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]

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    this is something you will probably need to ask the developer of your theme;

    commercial themes are not supported by this forum; http://codex.wordpress.org/Forum_Welcome#Commercial_Products

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.