• I am trying to create a page in WP 2.3. I am using this for my page:
    \<?php get_header(); ?>

    <?php include(TEMPLATEPATH.”/sidebar1.php”);?>

    <?php

    /*

    Template Name: Net Bible

    */

    ?>

    Then i have some html placed here

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <div class=”entrytext”>

    <?php the_content(‘<p class=”serif”>Read the rest of this page »</p>’); ?>

    <?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>

    </div>

    </div>

    <?php endwhile; endif; ?>

    <?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>

    <?php include(TEMPLATEPATH.”/sidebar2.php”);?>

    </div>

    <?php get_footer(); ?>\

    The html refuses to display. I have other pages with html in them and they work fine. You can see here and then click on resources->Bibles->King James works and the one i am trying to get to work is Net Bible

Viewing 7 replies - 1 through 7 (of 7 total)
  • This is wrong:
    \<?php get_header(); ?>
    <?php include(TEMPLATEPATH.”/sidebar1.php”);?>
    <?php
    /*
    Template Name: Net Bible
    */
    ?>

    See: https://codex.www.ads-software.com/Pages#Page_Templates

    Thread Starter carnold

    (@carnold)

    Excuse me for my id10tness but what is wrong with it? I see where the order is different but other than that….

    That’s more than enough…

    And I hope you are NOT trying to link to a template file directly because you should never do that.
    You create a Page template and then make a new Page using that specific template – that’s how it works.

    Thread Starter carnold

    (@carnold)

    Nope, i am not linking to a template page at all…Here is the new order and it still does not work:
    <?php

    \/*

    Template Name: Net Bible

    */

    ?>
    <?php get_header(); ?>

    <?php include(TEMPLATEPATH.”/sidebar1.php”);?>

    html code

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <div class=”entrytext”>

    <?php the_content(‘<p class=”serif”>Read the rest of this page »</p>’); ?>

    <?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>

    </div>

    </div>

    <?php endwhile; endif; ?>

    <?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>

    <?php include(TEMPLATEPATH.”/sidebar2.php”);?>

    </div>

    <?php get_footer(); ?>\

    What is it exactly “it doesn’t work”? What are you expecting and what the template does?

    (why do you have those \ in the code?)

    Thread Starter carnold

    (@carnold)

    (why do you have those \ in the code?)
    B/c the “reply” box has Put code in between backticks.

    It does not display the html code. If you view source on that page that i gave a couple of posts beore, you will see that the html is there, it just does not show on the page.

    ` <– these are backticks (usually where the ~ [tilde] is on top left

    I assume you cannot display frameset in these templates… I don’t know, never tried – don’t like frames, sorry.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page not displaying’ is closed to new replies.