Bi-directional query question
-
Hi
I have two pods: “Project” and “Element”. “Project” has a relationship-field called element and vice versa. On a “Project” details page (wp template) i’m trying to pull in all “Elements” that are related to projects with a certain stringcombo. I thought i could do something like this:$params = array( 'where' => 't.project LIKE "%13037%"', 'limit' => -1 ); $element = pods( 'element', $params );But i get SQL errors:
SELECT DISTINCTt.* FROMwp_postsAStWHERE ( ( t.project LIKE "%13037%" ) AND (t.post_type= "element" ) ) ORDER BYt.menu_order,t.post_title,t.post_dateAny help appreciated.
Cheers
Bonsak
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Bi-directional query question’ is closed to new replies.