Not working with custom taxonomy archive page with assigned posts
-
I have a custom URL field (ACF) assigned to a custom category for Projects called “Clients.” When there is no link, the button module for “website” should be hidden. It works properly when the category has no projects assigned to it, but the module does not display even when there is a link if the category has projects.
This is the boolean expression I’m using (and it works in other sites when not on a custom category archive page):
function_exists('get_field') && get_field('client_website') && get_field('client_website') !== ''
No website and no projects sample (button module is properly hidden): http://www.linda.aistrategic.com/clients/abigail-sullivan-moore/
Website and no projects sample (button module is properly displayed): http://www.linda.aistrategic.com/clients/victor-chan/
Website and projects assigned (button module is hidden but should display): http://www.linda.aistrategic.com/clients/ana-forrest/
- The topic ‘Not working with custom taxonomy archive page with assigned posts’ is closed to new replies.