WordPress.org

Ready to get started?Download WordPress

Forums

custom page - weird i think (2 posts)

  1. Miroslav Glavić
    Member
    Posted 8 years ago #

    Basically I have a contact form (Custom Contact 0.1e Allow Custom/Extended Contact Us Page By VaamYob.)

    plug-in, http://www.mydomain.com/blog/contact <--- address from the contact form, I also created a thankyou page (http://www.mydomain.com/blog/contact/thankyou) but it's showing on the pages section WHICH I DO NOT WANT TO, I don't care if it's http://www.mydomain.com/blog/contact/thankyou or http://www.mydomain.com/blog/thankyou as long as it doesn't show, in the plugin settings there is a field to put the thank you page, I just don't want it to show on the pages list on the right column....

  2. dagyo
    Member
    Posted 8 years ago #

    Yeah, that's a bit tricky to overcome, as I've fought with it in the past.

    One way to achieve what you want is to edit your theme's sidebar.php. More specifically, modify where the function wp_list_pages() is called.

    It depends on the specific theme you're using for the exact implementation, but according to this article, you can add the 'exclude=id' parameter to where the wp_list_pages() function is called.

    For example, if the ID of the Thankyou page was 10 (you can find that out on the Manage → Pages admin page), you could put the following in sidebar.php in place of the existing similar code:

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

    Anyway, have a read of this article and let me know what else I can help you with.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags