Hi there!
Looking for some help regarding a product content template. It was working until today and I am not sure what happened? Everything is updated, we did make some server changes but another site on our server isn't having these issues.
Basic rundown: I have a custom field called Product Type (product_type) that denotes if a product is a 'child' a 'donation' a 'birthday-gift' or a 'christmas-gift'. The custom field is assigned to Products only, and they are set.
The template is using wpv-conditional statements to show different layouts based on product type.
But the shortcodes are showing up; see this child's page: hidden link
And the donation page is not supposed to show children: hidden link
Any help would be appreciated!
Thank you!
Those are not Toolset ShortCodes, those are Fusion ShortCodes.
fusion_builder_container, fusion_builder_row, fusion_builder_column, etc.
It seems the plugin creating those ShortCodes is not active?
Also, it could be some apostrophe in the ShortCodes, or value of fields displayed holding an apostrophe that breaks the subsequent syntax.
I need to know, if this happens when you just use WPV COnditions on a Post without any builder or external Plugin, so to then have stepped on how to replicate it, as it's not happening locally.
Please then check if the plugin or theme generating your ShortCodes and templates are active.
The shortcode plugin is active and working. I have also tested to remove the Conditional statement and have a single template and it works just fine. It's as soon as I put the conditional statement in there it breaks.
I also have confirmed the conditional statements work on individual posts/pages and return shortcodes properly. This is only happening on this template.
Hi,
There might be some conflict issue in your website, please try these:
1) copy all codes inside [wpv-conditional] ... CODES... [/wpv-conditional] into a new content template, for example "my-code",
2) Then display the content template shortcode instead of those codes, like this:
[wpv-conditional] [wpv-post-body view_template="my-code"] [/wpv-conditional]
And test again.
Hi! That was a great idea, though it returns the view template shortcode now:
hidden link
The conditonals are returning properly based on the evaluations, its almost like they just don't process the shortcodes, but only on this content template for products.
Wait my reply was preemptive! I removed all of the other codes and ONLY had the conditionals and the template shortcodes on the product template and it works now!! Thank you Luo Yang for your idea! That worked perfectly!