CPT-onomies: Using Custom Post Types as Taxonomies
Problem with tax_query (2 posts)

  1. VGJ
    Posted 2 years ago #

    I am running a simple tax query with multiple arrays (taxonomies). I am noticing that the code is adding to the where clause with a table alias 'tt1' but not adding the table in the inner join. I have come to the following lines:

    if ($clauses['join'] && $taxonomies[ 'join' ] && strpos( $clauses[ 'join' ], $taxonomies[ 'join' ] ) === false )
        $clauses[ 'join' ] .= $taxonomies[ 'join' ];

    and changed it to:

    if ($taxonomies[ 'join' ] && strpos( $clauses[ 'join' ], $taxonomies[ 'join' ] ) === false )
        $clauses[ 'join' ] .= $taxonomies[ 'join' ];

    I do not believe this will work for everything, but it has worked for me now. I wanted to alert you of the problem and maybe push out a proper fix. When I have time to actually look into what can possibly be making it wrong and then make it right I will (if not previously fixed)


  2. Rachel Carden
    Plugin Author

    Posted 2 years ago #

    Thanks for letting me know. It looks like there are some issues going on with my post_clauses filter. I'm looking into it right now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic