WordPress.org

Forums

Custom Page Template (3 posts)

  1. Dani-Girl
    Member
    Posted 1 year ago #

    I've created a custom page template so that I can choose it from the edit page/add new page in the CMS.

    Its pretty much just a copy of the default page template, with 2 added details and some special CSS styling.

    I can't get the content to appear.

    I have content in my main editor (have some custom fields, and those are showing up), but the main editor content is not

    <?php the_content(); ?>

    Nothing is appearing where this code is.

  2. Dani-Girl
    Member
    Posted 1 year ago #

    I reduced the code down to the basics for the page, and yes, the main content is not showing up

    Here is my code currently on the custom page template page

    <?php
    /*
    Template Name: custom Page Template
    */
    
    get_header();
    ?>
    
    <?php the_content(); ?>
    
    <?php get_footer(); ?>

    Header appears fine. Footer appears fine. I'm not getting anything from the_content();

  3. alchymyth
    Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic