Nathan
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
Cet utilisateur n'a aucun sujet favori.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Display HTML on parent if /any/ child has a property
Commencé par : Nathan
dans : Toolset Professional Support
Problem: I have two cpts in a many-to-many relationship, Doctor and Office (no intermediate post-type, in case it matters). Most Offices have only one Doctor, though some have 2-4. I want to display an IMG tag on (and, ideally, filter/prioritise in search) Offices where at least one Doctor has either a checked field or a taxonomy item "Certified Member" Solution: In a single "Office" post, you can create a post view: 1) Query "Doctor" posts, 2) Filter by: - the post type relationship between post type Doctor and Office - post assigned with term "Certified Member" https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/ 3) In the "Loop Editor" section, within shortcode [wpv-items-found] ... [/wpv-items-found], display the image cert-flash.png Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-items-found |
2 | 3 | Il y a 5 années et 5 mois | ||
Views doesn't list own posts for other users redux
Commencé par : Nathan dans : Toolset Professional Support |
2 | 8 | Il y a 10 années |