• Resolved Revived

    (@revived)


    When I place the php code in archive.php to display on a category page, it loads posts from all categories. Do I need a new repeater template for archive.php?

    Here’s the code I copied from home.php:

    <?php echo do_shortcode(‘[ajax_load_more post_type=”post” offset=”10″ scroll=”false” button_label=”Load More Posts”]’); ?>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 9 years, 5 months ago by bdbrown.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘When I place the php code in archive.php …’ is closed to new replies.