Post UI Tabs inside my loop template
-
How I can fix this? Thanks!
Ex:
<ul> <?php while ( have_posts() ) : the_post(); ?> <li><a href="#my-wordpress-tabs-1"><?php the_title();?></a></li> <li><a href="#my-wordpress-tabs-2"><?php the_title();?></a></li> <li><a href="#my-wordpress-tabs-3"><?php the_title();?></a></li> <?php endwhile; ?> </ul> <?php while ( have_posts() ) : the_post(); ?> <div id="my-wordpress-tabs-1"> <?php the_content();?> </div> <div id="my-wordpress-tabs-2"> <?php the_content();?> </div> <div id="my-wordpress-tabs-3"> <?php the_content();?> </div> <?php endwhile; ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
- The topic ‘Post UI Tabs inside my loop template’ is closed to new replies.