WordPress.org

Forums

[resolved] [minimatica] Disable Paging of slider (2 posts)

  1. rexhaugen
    Member
    Posted 4 years ago #

    I am attempting to disable the paging function of the main slider in Minimatica's gallery mode.

    I have attempted using the below settings for the $paged variable
    $paged = get_query_var('paged')
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $paged = 0;
    $paged = 1;

    Does anyone have any suggestions? This is my first PHP project and the first time I have worked with PHP.

  2. rexhaugen
    Member
    Posted 4 years ago #

    For any others trying to remove the paging function, remove the following code from loop-slider.php.

    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
    <div id="nav-slider">
    <div class="nav-previous"><?php next_posts_link( '' ); ?></div>
    <div class="nav-next"><?php previous_posts_link( '' ); ?></div>
    </div><!-- #nav-above -->
    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic