Skip Navigation

[Gelöst] Filter of parent of RFG is empty..

This support ticket is created vor 3 Jahren, 8 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Dieses Thema enthält 5 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von Jamal vor 3 Jahren, 8 Monaten.

Assistiert von: Jamal.

Author
Artikel
#2001801

hey,

i have one Question about the RFG from this thread:
https://toolset.com/forums/reply/2001777/edit/

in my view (veranstaltungs-liste-date) i would filter about the parent taxonomies.

But this is not working:

<div class="form-group">
<label for="wpv-veranstaltungsart"></label>
[wpv-control-post-taxonomy taxonomy="veranstaltungsart" type="select" url_param="wpv-veranstaltungsart"]
</div>

best regards - alex

#2002093

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hi Alex

You haven't linked to another thread, did you mean to?

I don't understand what your question is about, you ask about RFGs but inlude a filter for taxonomies.

Could you please clarify what it is you want to do, and the problem you are facing?

#2002183

hi, sorry - here is the right link : https://toolset.com/forums/topic/order-in-view-of-parents-about-date-out-of-repeatable-fields-view/

the RFG is an loop for sorting about the RFG Parents from date that is in RFG 😉

and then i want to sort about the parent taxonomies- you see the empty downdown - here is a link to FE - > versteckter Link

i hope my english is good enough 😉

best regards - alex

#2002723

Hello Alex,

Unfortunately, you can't filter the RFG using the taxonomies of its parent post type. Note that an RFG is also a "hidden" custom post type. And we can't filter a custom post type using taxonomies or custom fields from another custom post type. Does it make sense?

You will need custom code to achieve this. If you are not comfortable with programming, consider hiring one of our partners https://toolset.com/contractors/

#2002781

Hey - but RFG is in Parent CPT as Fields to add - why not? - Its part of Parent?

For Custom Code: Is there a simple tutorial or CodeSnippet?

Alex Deutschenbaur
best regards - alex

#2002793

An RFG is not really similar to regular fields. Regular fields are stored as metadata in the {prefix}postmeta table. While RFG rows are custom post types, stored in the {prefix}posts table. They are linked to the Parent CPT through a hidden One-to-many relationship. Read more about the WordPress data model here https://codex.wordpress.org/Database_Description

For the custom code, I don't see an easy way to achieve this. I can image two custom codes, one that will build the filter, and the second custom code will be to hook into the view's query filter and modify it based on the filter value.
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
I think that it is a rather complex solution, and you should probably hire a developer for that.

Another solution would be to add an additional field to the RFG and create a custom code that will sync the parent post taxonomy to the RFG field. That way you can add a custom field filter to the RFG posts view. That is, probably, the easiest custom code solution. Does it make sense?