Problem: Some of my conditionals that previously worked to test Product Category assignment no longer work as expected.
Solution: Use the following syntax with the WordPress function has_term to test whether or not the current post has one or more of the desired terms assigned.
[wpv-conditional if="( has_term( 'Discogs', 'product_cat', null ) eq '1' ) AND ( has_term( 'Vinyl', 'product_cat', null ) eq '1' )"]
...this post has the terms 'Discogs' and 'Vinyl' in the Product Category taxonomy.
[/wpv-conditional]
[wpv-conditional if="( has_term( 'Discogs', 'product_cat', null ) ne '1' ) AND ( has_term( 'Vinyl', 'product_cat', null ) ne '1' )"]
...this post has neither the term 'Discogs' nor the term 'Vinyl' in the Product Category taxonomy.
[/wpv-conditional]
[wpv-conditional if="( has_term( 'Discogs', 'product_cat', null ) ne '1' ) AND ( has_term( 'Vinyl', 'product_cat', null ) eq '1' )"]
...this post has the term 'Vinyl' but not the term 'Discogs' in the Product Category taxonomy.
[/wpv-conditional]
[wpv-conditional if="( has_term( 'Discogs', 'product_cat', null ) eq '1' ) AND ( has_term( 'Vinyl', 'product_cat', null ) ne '1' )"]
...this post has the term 'Discogs' but not the term 'Vinyl' in the Product Category taxonomy.
[/wpv-conditional]
Problem:
PHP Warning - disabled for security reasons
Warning: getcwd() has been disabled for security reasons in /mnt/disk1/home/chillicyclingksb/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/Twig/src/Loader/FilesystemLoader.php on line 34
Solution:
Can you please check with your hosting/server authority if they have block such functions.