• Resolved vireshm

    (@vireshm)


    Hi. I would like to use the PODS list widget in Elementor to display a list of custom posts. I would like to include it in my template so that it updates contextually based on the page’s taxonomy. Is there a way to to reference the Page tags in the WHERE clause? eg WHERE post.tag = page.tag?

    • This topic was modified 4 years ago by vireshm.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @vireshm

    If you use our widget params you should be able to use the where param for something like: tag_name.slug = 'your_slug'.

    Cheers, Jory

    Thread Starter vireshm

    (@vireshm)

    Thanks @keraweb . Appreciate the timeous response. Will try it out and let you know if I run into any issues.

    Thanks again. ??

    Edit: If I have multiple tags and want to check if the page tag is contained within that array of tags, how would I do that?

    Example: Custom post type has tags “ferrari, lamborghini, cars, sportscar”, but page tag is “Ferrari”.. I only want to list those posts that have ferrari as one of its tags.

    • This reply was modified 4 years ago by vireshm.
    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @vireshm

    You should check the SQL IN clause: https://www.w3schools.com/sql/sql_in.asp

    Example: tag_name.slug IN ( 'slug-one', 'slug-two', 'slug-three' )

    Cheers, Jory

    Thread Starter vireshm

    (@vireshm)

    Thanks very much Jory.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create a PODS list using Page Tags’ is closed to new replies.