Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add page title and page blurb in any page of the forums


  • pepeng
    Member

    @pepeng

    <div id="sub_header">
    <?php
    /***
    * This conditional determines where exactly what page you are one.!
    **/
    if(is_home()){
    /* Blog Page */
    echo '<h1 class="page_title">';
    echo 'Welcome to my Blog';
    echo '</h1>';
    echo '<h2 class="page_blurb">';
    echo ' just another wordpress site';
    echo '</h2>';
    }else if(is_front_page()){
    /* Landing Page */
    echo get_post_meta($post->ID, "Landing Header", true);
    }else{
    echo '<h1 class="page_title">';
    echo get_post_meta($post->ID, "page title", true);
    echo '</h1>';
    echo '<h2 class="page_blurb">';
    echo get_post_meta($post->ID, "page blurb", true);
    echo '</h2>';
    }
    ?>
    </div>

    This the default site of my bbpress forums:

    http://localhost/mysite/forums/

    And I try to make page for forum using the short code [bbp-topic-index] :

    this is the link:

    http://localhost/mysite/forum/

    and I try to edit this code above:

    }else if(is_page('forum')){
    /* Forum Page */
    echo '<h1 class="page_title">';
    echo 'Forum Support';
    echo '</h1>';
    echo '<h2 class="page_blurb">';
    echo 'Press community';
    echo '</h2>';

    and it works fine only in page (forum) http://localhost/mysite/forum/

    but when I click all the the content in the forums my Title and Blurb has gone.

    WHat I want to do is my sub header page title and page blurb will appear in any page in forums.

    ANYONE knows how to fix this or how to add code?

    I’m just a beginners in wordpress

    your reply is much appreciated,

    Thank’s

  • You must be logged in to reply to this topic.
Skip to toolbar