• Hi
    Im very new to this but am trying to work my way through it,
    the content on my pages id not displaying only the title,
    earlier today i tried to get rid of the “leave a reply” boxes on the pages so edited the coding on the pages.php as suggested on one of these forums could this be the problem?
    <!– ?php the_post(); ?>–>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <!– ?php comment_form(); ?>–>

    which did get rid of the boxes but now when I’ve tried to change it back incase this is whats causing the content not to display its just coming up as the code on the actual page!
    Help please this is starting to really discourage me…

    https://shoppingsolved.com/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Tonihend

    (@tonihend)

    Sorry “the content is not displaying, only the title is”

    to comment out something, you would do it like this

    <!-- <?php the_post(); ?> -->

    or this

    <?php //the_post(); ?>

    usually

    but from your code above, the_post shows the post, you need that back

    <?php the_post(); ?>

    Thread Starter Tonihend

    (@tonihend)

    Thank you Rev. Voodoo but the actual problem now is that the content on every page apart from the front page is not displaying, only the title is displayed not any of the content and I don’t know why. I only thaught maybe it was because i messed with the code earlier, and that is why i tried to change it back.
    Any thoughts?

    you’ve got something wrong in page.php, or content-page.php, I’d almost guarantee it’s whatever you edited.

    I can’t tell exactly what without seeing the code. If it’s just a few lines you tampered with, paste it for us to see.

    If you aren’t sure what is messed up and wish to post all the code, do that in a pastebin and report the link back here
    https://pastebin.com

    You can also copy the code fresh from a download of 2011 and paste it nto your file.

    Also, you really should never edit 2011, here’s a writeup about that
    https://vudu.me/child

    Thread Starter Tonihend

    (@tonihend)

    ?? sorry reread your comment and tried it and it has solved the problem – thank you x

    Ah, glad you were able to get it sorted out then!!

    Thread Starter Tonihend

    (@tonihend)

    Thank-you
    I will learn this stuff eventually ??

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