I have created a content template that display the photographer's names.
These photographers names are a CPT which is in relationship wit a project.
I need to display these photographers names on the project page. So I have inserted the Content template "photographers names" inside the project page blocs.
BUT in this Content Template I need to check if the "photo-website" field of the Photographers CPT is empty or not to display the name with/without a link to their website.
How can I make this condition ? How ca I check in my content template if this field is empty or not ?
To suggest the best way to achieve this, I'll need to see how the involved elements are set up in the admin area.
Can you please share the temporary admin login details, along with the example 'project' post page, where you'd like to show the related 'photographers'?
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
The topic ‘[Closed] Value Check of a field of a CPT in relationship’ is closed to new replies.