Link to a page where the issue can be seen: hidden link
I update Toolset Types and Views to the latest version today, then now i've got the error when i try to display the page build with Views. : "Class 'WPV_wpcf_switch_post_from_attr_id' not found"
I create a custom function (in my functions.php) to display taxonomies link to a post, here my function :
Hello, i wrote this code based on what i found onn this forum long time ago.
This function is a shorcode to get the value of the taxonomy of a specific post.
i have a custom post create with type called "alisea-member"
link to this custom post i've got taxonomies "country", "sector" and "alisea-keyword".
On my view, in the loop, i call the shortcode wpv-post-taxonomy-alisea-member with the taxonomy in parameter : [wpv-post-taxonomy-alisea-member type="country"] this function should give me the good country fr the post.
Thanks
With the code you shared , as you shared the problematic line of code is the following:
$post_id_atts = new WPV_wpcf_switch_post_from_attr_id($atts);
After checking the full code, I do not see the variable $post_id_atts is used anywhere within the code.
I suggest you should comment out or delete the above line of code and it should work fine. Can you please give a shot and let me know how it goes. It should work without any issues.