Hi!
I built a CPT (actividad) which has a custom taxonomy attached (localizacion). I have a loop provider set up in a row in the Actividad layout, but I want it to only display the posts that have the same “localizacion” value as the current post. How can I built that query string?
I tried to customize an answer given by @friech some days ago (Can a range of posts be displayed depending the current post being viewed?) with this result:
post_type%5B0%5D=actividad&posts_per_page=6&ignore_sticky_posts=1&tax_query%5B0%5D%5Btaxonomy%5D=localizacion&tax_query%5B0%5D%5Bterms%5D={{dc:term:slug}}&tax_query%5B0%5D%5Bfield%5D=slug&tax_query%5B0%5D%5Boperator%5D=IN&tax_query%5B0%5D%5Binclude_children%5D=0&post__not_in%5B0%5D={{dc:post:id}}
but I keep getting an empty row. Any help?
Thanks, Sergio