• I’m using Max-Mag theme and in this theme the category link shows 5 posts (3 in slider and 2 below that). I want to increase this to 10 (3 in slider and 7 below that). From where I can do this?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Go to Edit Appearance and select the slider.php
    change this:

    <?php
    /**
     * The template for the slider on homepage.
     *
     * @file      feat_cat1.php
     * @package   max-magazine
     * @author    Sami Ch.
     * @link 	  https://gazpo.com
     **/
    ?>
    <?php
    	$slider_cat_id = max_magazine_get_option( 'slider_category');
    	//if no category is selected for slider, show latest posts
    	if ( $slider_cat_id == 0 ) {
    		$post_query = 'posts_per_page=4';
    	} else {
    		$post_query = 'cat='.$slider_cat_id.'&posts_per_page=4';

    change

    $post_query = 'cat='.$slider_cat_id.'&posts_per_page=4';`

    the “4” or the number you have for your “10”.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Go to Edit Appearance and select the slider.php

    Don’t edit that file, when an update comes out you will lose your changes.

    Try creating a child theme of the Max Magazine theme. That’s where you should try to make your changes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show more posts in category link’ is closed to new replies.