make'[wpv-conditional if="( '[wpv-post-type]' eq 'restaurant')"]' AND POST HAS THE TAXONOMY TYPE ALCOHOL SHOW THAT INSTEAD OF '[wpv-post-taxonomy type="restaurant-feature"][/wpv-conditional]'
Hello and thank you for contacting the Toolset support.
I am really sorry, but I did not understand what you would like to get. Can you give an example with more details, something like:
- Go to page ...
- Where xxx equals yyy.
- I would like to get zzz.
Hi, Jamal, sorry for that. I'm including tax on archives in a tag format, as in image attached. 'Tap Room restaurant' has tags and the bar 'Library Lounge' does not.
Both bars and restaurants are on the restaurant cpt. 'Bar' and 'Restaurant' are term fields of the tax 'Restaurant Types'.
I would like to say "This archive is for restaurants. The tax to use is 'restaurant-features'. However, if the restaurant post is classified as a 'bar', the tax that shows on the archive should be "restaurant types' > term field 'alcohol'.
Jamal is busy with some other tasks. I'm stepping in and take care of this ticket. Hope this is OK.
I can understand that you want to display something conditionally but its still not clear.
As I understand - you want to display the term custom field value instead of term name. is this correct? If yes:
-
To display the term custom field, you will require to create a taxonomy view and within the taxonomy view you will require to add the term custom field.
If you can share problem URL and access details that would help me to guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I want the archive to display the taxonomy "restaurant-features", and it does. (Image above with Momento Pizza.)
In the case that the post *also* has the taxonomy "alcohol", then it will display the term fields from "alcohol", and NOT the term fields from the tax "restaurant-features." (That's the image with the Library Lounge.)
I hope this makes sense. If not, I will have to revisit next week, at which time I will include all login info. (I'm moving today and tomorrow!)
I understand but its better if you can share problem URL and access details and then explain what you want to display exact at what part of the page.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The topic ‘[Closed] conditional tax in archive’ is closed to new replies.