Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* @subpackage Twenty_Thirteen
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<!-- Let's show our custom fields here -->
<?php
$my_book_title = get_post_meta( get_the_ID(), 'book_title', true);
$my_book_isbn = get_post_meta( get_the_ID(), 'book_isbn', true);
if( ! empty( $my_book_title ) ) {
echo '<h3>Book Title: ' . $my_book_title . '<h3>';
echo '<p>ISBN: ' . $my_book_isbn . '</p>';
}
?>
<!-- End showing our custom fields here -->
<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post -->
<?php comments_template(); ?>
<?php endwhile; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Address: info@webmachine.grWebsite: https://webmachine.gr/
Email: info@webmachine.gr
Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.