I am using Conditional Shortcodes within Views to try and display Custom Term Fields on an Archive page with conditional logic. I am finding that the drop down menu to select Types Fields only gives me the option to select from Custom Post Fields and not Custom Term Fields.
Is this expected? And is there another way to achieve what I want to do?
New threads created by Minesh and linked to this one are listed below:
Could you please tell me where exactly you are trying to check the custom term field value using conditional statement? on custom post type Single page or on archive or within view? If its view - the view is set to display what content?
Minesh, I am trying to check the custom term field using a conditional statement within a View that is placed on an Archive. The View is set to display the same taxonomy as the Archive where it is being displayed, there are no Query Filters or other settings active.
Thank you Minesh. This View is being displayed on a Term Archive Template. The Content Selection is the Taxonomy that it is being displayed on, there is no Query Filter or any additional settings changed and I am using the below code in the Loop Editor.
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-taxonomy-title]
</wpv-loop>
[wpv-conditional if="( $(***CUSTOM TERM FIELD SLUG***) ne '' )"] Not Empty [/wpv-conditional]
[wpv-conditional if="( $(***CUSTOM TERM FIELD SLUG***) eq '' )"] Empty [/wpv-conditional]
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]
I'm checking the custom term field "st-term-status" for empty and not empty condition and I can confirm that it works just fine. So I'm not able to reproduce the issue you reported.
sure. Could you please send me access details and problem URL where you added the view.
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.