I am trying to build a UL > LI prining page with each Price Item being LI containing repeater of price options.
Here is my raw query
{
“posts_per_page”: “5”,
“post_type”: “price_item”,
“tax_query_relation”: “OR”,
“tax_query”: [
{
“taxonomy”: “service_category”,
“field”: “id”,
“terms”: “106”,
“operator”: “IN”
},
{
“taxonomy”: “service_category”,
“field”: “id”,
“terms”: “106, 114”,
“operator”: “AND”
}
],
“order”: “ASC”
}
It fetches exactly the CPTs that I want, and I am able to use flat inner fields. But once I try to use Repeater – block crashes instantly.
What I did:
1. Created UL loop with query as source.
2. Mapped txt field inside, and added div with data source DYNAMIC
3. Setting up div I tried to choose: ACPT repeater (Nothing happens and no data available when I use repeater field key), Custom Meta Field Repeater (nothing happens here either), Nested Repeater Field (corretctly shows available fields, but block crashes when I input the repeater key).
4. My repeater has 4 key-value pairs: text, radio, text and text. Sometimes text field is empty when it is not requiered by the price item. I wish I could also use visibility condition to hide empty repeater values from rendering, but at this point I cant even show any.
My use case is having a list of dynamic cards filtered by category and ordered by date + list of inner items inside each card. It could be repeater or flexible data – but the case is very much needed for rental cards, pricing, service details, event details etc.
Other additional things I’ve hit previously:
A1. Visibility conditions are not behaving in the context of loop. I have to make css workarounds to hide fields with no value because in visibility conditions when I select condition based on the meta-key I assume it compares the condition to the page, not to the card. Would be super valuable and usable if Visibility conditions could be more aware of the context.
A2. CPT doesnt appear in the populated list of CPTs when my CPT settings:
public: true + publicly queryable: false + show in REST API: true + has archive: false
I still can type manually, but can’t choose my CPT from the UI. The use case – having admin entry that is not supposed to have single page or archive, but needs to showup as FAQ items, or price items, or reviews etc.
A3. When choosing repeater values – please either make it one value per row, or show full wrapped text of the key, or show the key value on hover – because it is dangerous and impossible to know which field key you are choosing, when the first part is taken by meta box name.
A4. This website will also have polylalng multilingual setup, and I noticed that loops are always showing all the posts from all the languages. Is there a chance we could be able to have current language being appreciated in query loops, and language being available as Visibility Condition option?







Post a Reply
You must be logged in to post a comment.