Support » Plugin: WordPress Infinite Scroll - Ajax Load More » Load bad posts on category page

  • Resolved manx89

    (@manx89)


    Hi,

    I have problem with loading posts on category page. Plugin is loading posts, but from all categories, how to limit it only to current category. For example I have category “zdrowa” here: https://kobietowo.pl/category/zdrowa/ . Plugin should load only posts from this category. But there is posts from all categories. This is my Repeater template:

    <?php
                        $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
                        $url = $thumb['0'];
                        ?>
    <div class="col-md-3 laduj" style="min-height: 600px;">
                                <div class="one-post">
                                    <a href="<?= get_permalink(); ?>">
                                        <div class="post-image" style="background-image: url(<?= $url ?>);"></div>
                                        <div class="meta-info">
                                            <div class="row">
                                                <div class="col-md-12 title">
                                                    <h3><?= the_title(); ?></h3>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="content-post">
                                            <?php
                                            echo strip_tags(substr(get_the_content(), 0, strpos(get_the_content(), ' ', 160)),'<p><span>') . ' ... ';
                                            ?>
                                        </div>
                                    </a>
                                </div>
                            </div>

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.