• I am using the Tabbed Content on my home page, and it works fine when displaying text. I am trying to have it use some PHP code, and the result is a blank page. Cna someone help me out with this?

    http://billboardfamily.com/?theme=DeepFocus

    Here is the code I have:

    <!-- BEGIN main blog content -->
    <?php
     $lastposts = get_posts('numberposts=1&category=15');
     foreach($lastposts as $post) :
        setup_postdata($post);
     ?>
    
    <?php echo do_shortcode('[tabs slidertype="top tabs"] [tabcontainer] [tabtext]BLOG[/tabtext] [tabtext]CONTEST/SPECIALS[/tabtext] [tabtext]CONNECT[/tabtext] [tabtext]SUBSCRIBE[/tabtext] [/tabcontainer] [tabcontent] [tab]<div class="mainblog-content">
    
     <h2><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2>
    <?php the_content(); ?>
    
     <?php endforeach; ?>
    
    </div>
    [/tab] [tab]Tab Content[/tab] [tab]Tab Content[/tab] [tab]Tab Content[/tab] [/tabcontent] [/tabs]'); ?>
    <div id="mainblog" style="margin-top: 15px;">
    
    <div class="mainblog-content">
    
     <h2><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2>
    <?php the_content(); ?>
    
     <?php endforeach; ?>
    
    </div>
    <!-- END main blog content -->
  • The topic ‘Help with Tabbed viewing & PHP’ is closed to new replies.