• After loading all posts in a category, start to call other category, even when the navigation doesn’t have more link

    I have 4 differents category with 4 differents template, managed in category.php by this code
    <?php
    if(is_category(4)) :
    include(‘category-press.php’);
    elseif(is_category(6)) :
    include(‘category-events.php’);
    elseif(is_category(3)) :
    include(‘category-works.php’);
    elseif(is_category(5)) :
    include(‘category-projects.php’);
    endif; ?>

    After category are managed by the default category, so no query_posts and no WP_Query,

    Do you have any idea to resolve it ?

    https://wordpress.org/plugins/infinite-scroll/

The topic ‘Call other category’ is closed to new replies.