Conditions from other cpt

I want to show the content from a specific tag (it has the name of the event) on a cpt called “events”:

the content is actually sponsors which belong to a library of sponsors CPT called “sponsors”.

I would like to know how I could create a condition to show only the “sponsors” belonging to a specific “event” based on the name (since the tag is exactly as the event name).

Is that possible?

Hey @franticape,

This is best done using a custom function. Regretfully, there is not out of the box solution that I see for now. We can look deeper and suggest a function in our One service.

What type of custom function? I can write it, but would I need to use a hook you provide, maybe? or what else do you mean so I can understand better what I can do (I don’t know the limitations INSIDE cornerstone which is what’s currently making me ask for help here).

Hey @franticape,

I believe this will require a Custom Looper (see https://theme.co/docs/loopers#custom).

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