Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

robthirlby on "pods where clause in do_shortcode"

$
0
0

Is it possible to quote the following pods shortcode in a do_shortcode call? It works ok without the where clause but gives a syntax error at the first { otherwise.

[pods name="author" limit="-1" where= "d.first_name like'%{@get.firstname}%' and d.last_name like'%{@get.lastname}%' "  ]
....html with various other{magic tags} ...[/pods]

I could clearly rewrite the whole thing in php pretty easily but would prefer to use the shortcode and magic tags. The code is in a page template.


Viewing all articles
Browse latest Browse all 8245

Trending Articles