Hi!
I’m trying to create a layout for the archive pages of a custom post type.
My post type name: rabatter (means discounts)
My taxonomy name: rabat_type (means discount type)
The specific category slug: stor-rabat (means big discount)
I have categories such as clothes, food, culture, etc. (these are where the layout is intended to be used)
I also have categories named: Big discount, medium discount and national discount. (used to detirmin how the discount should be displayed.
On each of the pages, i want the big discounts shown first with one layout, the medium to come second with another layout and lastly the national ones with a third layout.
I’m trying to create a string that will call the big discounts of the current category that the looper provider will fetch. Then of course each row would have the elements from the post.
I’ve used query builders before, but not the strings, that’s why i need a bit of help.
I tried this string:
category_name={{dc:term:slug}}&post_type=rabatter&tax_query%5B0%5D%5Btaxonomy%5D=rabat_type&tax_query%5B0%5D%5Bfield%5D=name&tax_query%5B0%5D%5Bterms%5D=stor-rabat&tax_query%5B0%5D%5Boperator%5D=IN
and this:
category_name={{dc:term:slug}}&post_type=rabatter&tax_query[0][taxonomy]=rabat_type&tax_query[0][field]=name&tax_query[0][terms]=stor-rabat&tax_query[0][operator]=IN
But both without success.
I’m assuming it’s the string that’s written incorrectly, right?
Could you please explain how it’s wrong?
Kindest regards,
Johan