Featured stories' images on 2nd, 3rd, etc. pages of a given category

Posted in: Newsmag
Post count: 207

Hello,

For my news category “Culture” here: http://pavlikeni.com/category/news/culture/ the latest stories’featured images appear correctly on top, followed by older news below. The same way they appear on http://pavlikeni.com. See however what happens on the 2nd, 3rd, etc pages after the first for catefegory “Culture”: http://pavlikeni.com/category/news/culture/page/2/ The featured images from the 1st page are still there?!

How can I remove them so the 2nd, 3rd, etc. pages of each category on my site appear the way they appear on this page: http://pavlikeni.com/page/2/ To clarify, this is the 2nd page with featured stories.

Thanks,
Peter

Post count: 6535

Hi

I assume that you want to display the top grid only on first page for category page. To achieve that you need to edit the category.php file and add this code like here: http://screencast.com/t/7HyTxtF5zoC

        <?php
            if (empty($paged) or $paged < 2) {
            td_api_category_top_posts_style::_helper_show_category_top_posts_style();
            }
        ?>

This code will display the post grid only on first page of a category page: http://screencast.com/t/BzjBrQWSpwtxhttp://screencast.com/t/g4W3Wx2NE

Let me know how it goes.
Thanks!

  • This reply was modified 10 years by Andrei L..
Post count: 207

Thank you, that worked great!

Regards,
Peter

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newsmag’ is closed to new topics and replies.