Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying any single post.
- *
- */
- echo '<link rel="stylesheet" type="text/css" href="/wp-content/themes/divi-child/style.css">';
- //get_header(); // This fxn gets the header.php file and renders it ?>
- <div id="primary" class="row-fluid">
- <div id="content" role="main" class="span8 offset2">
- <?php if ( have_posts() ) :
- // Do we have any posts in the databse that match our query?
- ?>
- <?php while ( have_posts() ) : the_post();
- // If we have a post to show, start a loop that will display it
- ?>
- <div class="container">
- <div class="speakerdetail">
- <div id="content-area" class="clearfix">
- <article class="post">
- <h1 class="title"><?php the_title(); // Display the title of the post ?></h1>
- <?php $content = get_field('talks'); if ($content) : ?>
- <!-- <h1 class="entry-title"><?php //echo $content[0]['title']; ?></h1> -->
- <div class="subtitle"><?php echo $content[0]['subtitle']; ?></div>
- <?php echo $content[0]['description']; ?>
- <!-- <pre><?PHP // print_r($content); ?></pre> -->
- <?php else: ?>
- <?php echo $subtitle; ?>
- <?php endif; ?>
- </article>
- <?php endwhile; // OK, let's stop the post loop once we've displayed it ?>
- <?php
- // If comments are open or we have at least one comment, load up the default comment template provided by Wordpress
- if ( comments_open() || '0' != get_comments_number() )
- comments_template( '', true );
- ?>
- <?php else : // Well, if there are no posts to display and loop through, let's apologize to the reader (also your 404 error) ?>
- <article class="post error">
- <h1 class="404">Nothing has been posted like that yet</h1>
- </article>
- <?php endif; // OK, I think that takes care of both scenarios (having a post or not having a post to show) ?>
- </div><!-- #content .site-content -->
- </div>
- </div>
- </div>
- </div><!-- #primary .content-area -->
- <?php //get_footer(); // This fxn gets the footer.php file and renders it ?>
Advertisement
Add Comment
Please, Sign In to add comment