WordPress.org

Support

Support » How-To and Troubleshooting » “Pages” Not showing in Sidebar

“Pages” Not showing in Sidebar

  • drdarrow
    Member

    @drdarrow

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Alex Mills (Viper007Bond)
    Participant

    @viper007bond

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

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

    drdarrow
    Member

    @drdarrow

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

    drdarrow
    Member

    @drdarrow

    …and I don’t get it

    oriecat
    Member

    @oriecat

    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.

    oriecat
    Member

    @oriecat

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

    drdarrow
    Member

    @drdarrow

    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!

    Alex Mills (Viper007Bond)
    Participant

    @viper007bond

    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. 😉

    drdarrow
    Member

    @drdarrow

    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?

    oriecat
    Member

    @oriecat

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

    <?php comments_template(); ?>

    Alex Mills (Viper007Bond)
    Participant

    @viper007bond

    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.

    drdarrow
    Member

    @drdarrow

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘“Pages” Not showing in Sidebar’ is closed to new replies.