Variables / Looper Condition: Display if not Current

Hi there,

Loopers are the feature I waited for - thanks!

One question: How can I exclude the currently shown portfolio item from a “recent portfolios”-list, if it is one of these “recent” items?

Assuming there is a variable “current_id_attribute” and I can build a query for my portfolio like this, I would set up a condition like this:

{{dc:portfolio:id_attribute}} != {{dc:portfolio:current_id_attribute}}

… but well, yes, is does not work as expected.

Any ideas?

Kind regards!

Hello @sentifux,

Thanks for writing in! With the “Recent Posts” Looper Provider, you can display all the latest posts/portfolio items and only have the offset option. If you use the “Query Builder”, you still cannot exclude a post or recent portfolio item. You can use the “Query String” instead, by building your own custom query string and then use the " post__not_in" in your query. Please check out this codex first:

Best Regards.

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