[Resolved] A wysiwyg field won’t show if not empty
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user has some custom tabs that can be navigated through but the second tab isn't working. It is displaying blank
Solution:
Upon investigating this it seems there are some inconsistencies in the html that the user is using which is causing the second tabbed content to be placed in the first.
It is recommended that all html tags are correctly closed.
This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
I am trying to: to show all information about a stemma in a specific tab called but it's completely empty when type field "note-stemma" is not empity. The view used is "stemma-child". It works perfectly but when "note-stemma" is full of information, it won't load the view.
[wpv-conditional if="( $(wpcf-note-stemma) ne '' )"] <strong>Note Stemma</strong><br>
[types field='note-stemma'][/types][/wpv-conditional]
Link to a page where the issue can be seen: hidden link (tab stemma)
I expected to see: hidden link (tab stemma)
Instead, I got:
nothing is shown
Yeah. I do really not know why when this field is not empty all the view is not working. Maybe because there are two wsywig in the same view (blasonatura-stemma and note-stemma)
After that. please copy the content of the error_log.txt file (at the WordPress root directory) and send us the content. We need to check if there is any PHP errors.
[18-Jan-2019 17:23:49 UTC] PHP Notice: A non well formed numeric value encountered in /web/htdocs/www.araldicacivica.it/home/stemmi/wp-content/plugins/wp-views/embedded/inc/wpv-query-debug.class.php on line 382
[18-Jan-2019 17:23:49 UTC] PHP Notice: Undefined index: section in /web/htdocs/www.araldicacivica.it/home/stemmi/wp-content/themes/astra/functions.php on line 2134
the second error is a function like this
function wpv_url_param_shortcode( $atts ) {
$param = $atts['var'];
return $_REQUEST[$param];
}
but the first one I donot really understand what is
I took over this ticket from Diego since he isn't available currently.
I looked at this in some more detail and found that this first tab had the content of your stemma tab, so it is being loaded in there.
<div id="Info" class="tabcontent">
[wpv-post-body view_template="stato-info"]
</div>
If I removed this tab it works perfectly fine. It seems to me that there is a div or something that is not closed correctly. So I would recommend tracing through this tab to find exactly the offender.
I hope I was able to point you in the correct direction. Apart from that the tab loads fine with all the content.