Missing class=”responsive-tabs” in html
-
In the functions.php I am including the tabby shortcode in two places, one time it is working, the other not, using the same php code:
$inner_short = '[tabby title="' . $tab->tabname . '"]'; $out_all = $out_all . do_shortcode( $inner_short ) . $details;There is a Tab loop and inner Details loop, creating $details based on database values.
The full page is set up in the WordPress Editor and includes the shortcode:
[allextractsauthors]
which is referenced in the functions.php:add_shortcode( 'allextractsauthors', 'get_extracts_authors' ); and the tabby code is called within function get_extracts_authors().Testing with the $details set to an empty string, the working case results in:
<div class="responsive-tabs"> <h2 class="tabtitle">Western</h2> <div class="tabcontent"> </div><h2 class="tabtitle">Far East</h2> <div class="tabcontent">and so on, but the failing case results in:
</div> <h2 class="tabtitle">Western</h2> <div class="tabcontent">etc. that is, the <div class=”responsive-tabs”> is missing.
Any ideas on what to look for to fix this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Missing class=”responsive-tabs” in html’ is closed to new replies.