Only one shortcode [hdvideo] is read by the_content( )??
-
Hi,
I pasted a number of shortocodes inside a post like this;
*the class video_player_content is just a custom css layout class”
<div class=”video_player_content”> [hdvideo id=19] </div>
<div class=”video_player_content”> [hdvideo id=18] </div>
<div class=”video_player_content”> [hdvideo id=20] </div>
<div class=”video_player_content”> [hdvideo id=21] </div>and then used the_content( ) to display the contents/videos. But only the first shortcode is displayed or wrapped by the div below. This is how I display the contents;
<div style=” width:100%” id=”gallery_slider_<?php echo $i; ?>” class=”gallery_slider hidden”>
<?php the_content(); $i++;?>
</div>the DOM looks like this;
> <div style=” width:100%” id=”gallery_slider_<?php echo $i; ?>” class=”gallery_slider hidden”>
<div class=”video_player_content”>..</div>
</div>
> <div class=”video_player_content”>..</div>
> <div class=”video_player_content”>..</div>
> <div class=”video_player_content”>..</div>what i need to do is place all the videos inside this div:
> <div style=” width:100%” id=”gallery_slider_<?php echo $i; ?>” class=”gallery_slider hidden”>
<div class=”video_player_content”>..</div>
<div class=”video_player_content”>..</div>
<div class=”video_player_content”>..</div>
<div class=”video_player_content”>..</div>
</div>but apparently, i guess the plugin has its own way which i cant explain how or why.. please help.
- The topic ‘Only one shortcode [hdvideo] is read by the_content( )??’ is closed to new replies.