WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 'the_content' not working when using multiple page templates (2 posts)

  1. yuedesign
    Member
    Posted 1 year ago #

    My website is owenyue.com.

    Owenyue.com/about is using the one page template, whilst oweyue.com/creating/ is using another, the code of which can be found here:

    <?php /* Template Name: template page2
    */
    
    get_header(); ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<header class="entry-header">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	</header>
    
    	<div class="entry-content">
    		<?php the_content(); ?>
    		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'dsframework' ), 'after' => '</div>' ) ); ?>
    <?php comments_template(); ?>
    	</div>
    </article>

    I am honestly at a dead end! I've no idea what's going wrong. Please help me !!

    Thanks
    Owen

  2. yuedesign
    Member
    Posted 1 year ago #

    Resolved!

Topic Closed

This topic has been closed to new replies.

About this Topic