The problem started yesterday, until now everything worked fine.
I have a custom post type and I assigned a custom taxonomy to it.
I cannot get the terms assigned to that custom post using get_the_terms (post_id, taxonomy).
Following the screenshots you will see that everything is set up.
I have hardcoded a call : var_dump(get_the_terms(7844, 'nomos-synergati')); and it returns
object(WP_Error)#17061 (3) {
["errors"]=>
array(1) {
["invalid_taxonomy"]=>
array(1) {
[0]=>
string(37) "Μη έγκυρη ταξινομία."
}
}
["error_data"]=>
array(0) {
}
["additional_data":protected]=>
array(0) {
}
}
Hi,
Thank you for contacting us and I'd be happy to assist.
I've performed some tests on my website with a similar code, but couldn't reproduce this error. This suggests that something specific to your website is involved.
Can you please share temporary admin login details and the link to the page where you've used the "get_the_terms" function? I'll also need your permission to download a clone/snapshot of the website if it needs to be investigated on a different server.
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
regards,
Waqar