[resolved] Adjusting slider Function to display Parent Category Posts (4 posts)

  1. gpsy1
    Posted 3 years ago #

    Hello, if i duplicate slider function from index.php to category.php is it possible to make it show parent category latest post?

  2. gpsy1
    Posted 3 years ago #

    I guess that was to easy to be true....

    Im trying to at least make slider show on category pages since he is limited to home page only and later work on the function. In the gazpo settings is this:

    $gazpo_options = array(
    	'gazpo_show_slider' => true,
    function gazpo_validate_options( $input ) {
    	global $gazpo_options;
                if ( ! isset( $input['gazpo_show_slider'] ) )
    	    $input['gazpo_show_slider'] = null;
    	    $input['gazpo_show_slider'] = ( $input['gazpo_show_slider'] == 1 ? 1 : 0 );

    Would need help to understand this and how to make it show on other pages also. Thanx

  3. gpsy1
    Posted 3 years ago #

    Ok that worked well i add slider call function to category.php inside the loop and it worked it show front page slider on category page.

    Ok now how to change function to show parent category posts? Any idea ....thanx

  4. gpsy1
    Posted 3 years ago #

    I want to leave the main slider on front page as it is and showing the latest posts.

    So i was thinking if i duplicate the slider to slider2 with all the functions should be ok.

    So i copy slider.php and rename it to slide2.php...did the same thing with in the gazpo-settings.php copy paste the function of the slider and rename it to slider2 and copy paste slider css style and rename it to slide2.

    Now it show the slider but not properly im missing main post image.....running out of ideas....

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic