Home>Support>Configure Post Loop to use a Category and an array of tags

Configure Post Loop to use a Category and an array of tags

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi,

I’m having issues with getting the post loop to show only posts that are tagged with a set of tags with a category, for example I would like a loop of the following:

Posts that are in Category = Reviews AND ( Tag=Retro OR Tag=Retro Monday OR Tag = Retro Hour)

However I can’t see a way to configure the “or” part so I get everything in Reviews and no filtering on the tags specified.

Any idea?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Kelvin,

    Unfortunately, this isn’t possible without a fair amount of custom coding at this time. I’ve marked this thread as a feature request. We often look through these threads to get ideas for what to add in our future updates. Hopefully, we’ll be able to add this in a future update.

    If you’re familiar with PHP, you could do this via the siteorigin_widgets_posts_selector_query filter.

    If you need this urgently, you could always post a job on Codeable

  2. 8 years, 2 months ago Kelvin Brotherston

    Hi,

    Sorry meant to post but the site kept erroring, I resolved this by writing the query in the widget myself, it then did what I required.

    Sadly pagination didnt function so I custom coded the loops and styling myself but it was a nice idea at least to have page layouts etc.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More