WordPress.org

Ready to get started?Download WordPress

Forums

Why does Contact post shows up whenver loading the Home page? (7 posts)

  1. misty9
    Member
    Posted 6 years ago #

    Hi,

    I have this Contact post which shows up whenver the Home page is loaded. How can I fix it so that it won't show up at the Home page? It has nothing to do with exclude parameter of php wp_list_pages() because I've tried it and didn't help.

    Any help is appreciated. Thanks.

  2. Hafiz Rahman
    Member
    Posted 6 years ago #

    Hi, can you be more clear on this?

    1. Do you create the Contact as a Post or as a Page?

    2. Does this Contact appear along with other posts, or there's nothing else but itself?

  3. misty9
    Member
    Posted 6 years ago #

    Hi,

    1. I have created the Contact as a Post
    2. The Contact post appears above the default "Hello World" post which is the default Home page.

    Just the following part shows up on the Home page, not the form part.

    "Contact Author
    Use the following form to contact author via email. Your email will be read and author will try to reply as much as possible."

  4. Hafiz Rahman
    Member
    Posted 6 years ago #

    I see.
    I believe you need to create the Contact as a Page. As a Post it will be included with the other blog posts, but as a Page it will not. Read more: http://codex.wordpress.org/Pages

  5. misty9
    Member
    Posted 6 years ago #

    Thanks for your effort, Hafiz.

    I was testing the exactly the same theme in two sub domains. The contact page is a post and it doesn't show up in the Home page in one of the sub-domains. I must have messed up something along the way.

    Will try to figure out what the cause of it.

    By the way, I've checked several other themes, their contact page is a post and no issue appearing on the Home page at all.

  6. misty9
    Member
    Posted 6 years ago #

    Still haven't found a solution yet. But, I've found out that the same theme works in Word Press 2.2, but not working in Word Press 2.2.2.

    The following code makes a difference:

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    - The working blog would have only one PAGE called MyTestPage:
    <title>skybluedot.com » MyPortF</title>

    - The problematic blog would show the Hello World POST and the Contact POST when click on Home menu item.

  7. Mark Jaquith
    WordPress Lead Dev
    Posted 6 years ago #

    Hafiz is correct, a Contact page belongs as a Page in WordPress, not a Post. It is intended that all posts show up on your home view. Pages are non-chronological content that will not be displayed in blog views.

Topic Closed

This topic has been closed to new replies.

About this Topic