WordPress.org

Ready to get started?Download WordPress

Forums

"Pages" Not showing in Sidebar (12 posts)

  1. drdarrow
    Member
    Posted 9 years ago #

    My wife's site here is not showing any new Pages (versus Posts) in the sidebar.

    is this something we need to turn on? We use the same theme (Soothe) on hers and mine, and I don't remember if there is a setting somewhere that allows Pages to be displayed or not. There are currently 3 Pages in the database, but the Pages heading doesn't who in the Sidebar, not any of its Pages.

  2. What code do you have in the sidebar tha related to Pages?

    You should have something like <?php wp_list_pages(); ?>

  3. drdarrow
    Member
    Posted 9 years ago #

    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>

  4. drdarrow
    Member
    Posted 9 years ago #

    ...and I don't get it

  5. oriecat
    Member
    Posted 9 years ago #

    When I view your source, I can see the pages listing, but it is included in a large section that is commented out. There are also Recent Posts, Archives and Categories listing in there too.

  6. oriecat
    Member
    Posted 9 years ago #

    You need to delete the commenting. <!-- and -->

  7. drdarrow
    Member
    Posted 9 years ago #

    Geez. I never thought of that, and I don't remember commenting them out, but apparently I did.

    Thanks for solving the mystery.

    I removed the commenting adn it works fine. I think I did that because originally my wife was going to have only an opening statement, and NOT blog, so I eliminated (apparently) the superfluous diaplays...

    Now, go figure, she wants to blog. (And after all the times she's asked me "What do you get out of blogging?"

    "Duh!" on me.

    Thanks so much!

  8. If you wanna eliminate it, put it in PHP comments or just delete it all together. No need to generate it out and send it to the user if it's just not gonna be displayed. ;)

  9. drdarrow
    Member
    Posted 9 years ago #

    Now I have a new problem.

    There is a Page called "Client Endorsements" with a simple message "I welcome your comments" --- But there are no links to leave comments! What have I done? Where would I change that?

  10. oriecat
    Member
    Posted 9 years ago #

    You need to add the comments template tag to your page.php (assuming you have one).

    <?php comments_template(); ?>

  11. Or make a seperate page template if you don't want to allow comments on all pages: http://codex.wordpress.org/Pages#Page_Templates

    You could also use a plugin like WP-Contact Form.

  12. drdarrow
    Member
    Posted 8 years ago #

    That's not going to work for me, but thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags