Hide/show certain posts in a RSS feed based on the category

Hi there, I have an RSS feed (using the rss feed element) on my page displaying posts of a certain tag. The source is another WordPress site I created with pro. Now I want to filter these posts by category using the conditional logic on the RSS item. I tried {{dc:looper:field key=“category”}} is “category-name” filter the feed for one specific category but that doesn’t work. What am I missing? In your video tutorial https://www.youtube.com/watch?v=cxUsFl5Va5k you were able to filter RSS items using conditions and attributes.

Thank you

Hello @ArtOfSpring,

Thanks for writing in!

You will have to use “IN” like this:

Kindly let us know how it goes.

Ah thank you very much, that worked!

There is just one condition/filter that’s not working (see secure note)

Hello @ArtOfSpring,

In one of the Text elements in your Looper Consumer, insert {{dc:looper:debug_consumer}} to display the items that is returned by your looper. This is a way to find out more about the items returned. This is also how I figured out how to apply the condition on the page.

Best Regards.

Hi @ruenel,

there is no data being pulled:


But I do not see a reason why. There are definitely posts of these categories (in combination with the tag). It’s just these two categories “Altenhilfe” and “Pflege” where no output is shown in the feed.

Hello @ArtOfSpring,

There should be a debug data:

I’ve tried checking the feed and I could not find any item with this categories “Altenhilfe” and “Pflege”.

Best Regards.

Hi @ruenel,

https://team-awo.de/schlagwort/awo-mitte/feed/
this feed only shows 8 posts (first page of pagination) but there are actually 36 posts with that tag:
https://team-awo.de/schlagwort/awo-mitte/

Also there are posts fitting the criteria (tag: “awo-mitte” & category: “altenhilfe”):


this is an example: https://team-awo.de/eine-pflegefachkraft-m-w-d-fuer-unsere-tagespflege-sommergarten/

Hello @ArtOfSpring,

Your feed only returns 10 posts. It does not return more than that. You might want to check this out instead:

Best Regards.

Hi @ruenel thanks for pointing me into the right direction. So I changed the wordpress read settings on the source feed to 40 posts and it worked. But somehow the posts are still missing on the receiving page.

Hello @ArtOfSpring,

Actually, the condition is correct. The problem is that you Looper Consumer only returns 20 items.

Screenshot 2024-04-28 at 10.15.00 AM

Setting this to 50 will display the items.

Best Regards.

Hi I set it all to 50 but there is still nothing for the mentioned categories showing up

Hey @ArtOfSpring,

It is already displaying the items on my end.

Best Regards.

Strange, it’s still not showing on my end. Must be a cache thing then.

Hey @ArtOfSpring,

Just load the page and do not make any changes as I have saved the changes I made. It should display items on your end too.

Cheers.

Hi @ruenel it’s still not showing at my end.

Hey @ArtOfSpring,

Please open the page using another browser. On my end, I see this:

This is weird because it works on my browser even if I am not logged in.

Thanks.

That’s really strange. No matter what browser, network or device, I don’t receive this output.



And our customer doesn’t see it either. Could this be a Geo IP issue?

Hey @ArtOfSpring,

Now, I know why. You are checking this page:

while I am on this page:

Thanks.

Oh man that’s really it :sweat_smile: Thanks a lot!