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.
The issue here is that the user wanted to change their post author on the backend edit screen.
Solution:
If you're not seeing this then you will need to go to Toolset -> Post Types and edit your custom post type, under "Sections to display when editing" ensure that author is selected.
Once you've done this go back to the edit screen of your post and you should now see the authors option.
From there you should be able to select your post's author.