Looper Provider Offset - Weirdness

Hi there,

We are trying to show recent posts for the current category using looper/consumers, but have run into an issue:

Here’s the page: https://upriseri.com/category/news/civil-rights/

Right now, it has the whole page as one section, and that is the looper provider using Recent Posts. Works fine EXCEPT the first row of smaller stories repeat the top story. There’s no offset option in Consumer or any way I can figure out to skip a story except…

We tried creating two sections, one for the large top story, and one for the lower stories. We set them both to providers for Recent posts. Oddly, the top section shows the most recent post for the current category as it should, but the lower section shows recent posts from ALL categories.

How do we properly do this?

Hi @co50,

You need to set the Offset value while using the second Recent Post looper. Please find the screenshots below describing the option.

test-new-Content-Pro - 2021-05-19T203058.496

test-new-Content-Pro - 2021-05-19T203021.057

Hope it helps.
Thanks

That is not relevant to the situation because the second looper Recent Posts is loading ALL categories instead of just the current one, so an offset as you suggest would just offset posts we don’t want. I explained this in my post.

Hi @co50,

Sorry for the confussion, can you please please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– Specific Layout where you are having this issue.
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Done. Layout is accessed under Layouts > Category Pages

Hello @co50,

Please be aware that in creating a custom layout for any archive pages, you do not need to have a Looper Provider because, in archive pages, WordPress is running a loop already. All you have to do is set up your layout and set the Looper Consumer.

Screen Shot 2021-05-22 at 8.29.45 AM

These are your Civil RIghts posts:

The expected Civil Rights archive page should be like this:

You can all achieved this by doing the following:
1.) Turn OFF the Looper Provider in Section 1 element
2.) The row “Top Headline Story” will be set as a Looper Consumer which will display “ONE” only.

Screen Shot 2021-05-22 at 8.41.41 AM

3.) Row 1 in column 1 of the Stories row will also be set as a Looper Consumer and set to display “ALL” which will then display all the remaining post items on the archive page.

By the way, please make sure to clear all you plugin caches first before testing the archive pages again. It is best that you temporarily disable any caching and optimization plugins while you are still creating or building the site. These plugins are best to turn ON when are are done and ready to go live.

Kindly let us know how it goes.

This does not work. When following your instructions exactly, the stories row shows just a single story, and its the same one shown in the large section above it.

Nonetheless, we figured it out using a different config. But FWIW your instructions do not accomplish this.

Hi @co50,

We’re glad that you’re able to figure it out! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.