Skip to:
Content
Pages
Categories
Search
Top
Bottom

Page Titles for Custom Page Templates


  • Roy
    Participant

    @roymckenzie

    Hello! I am having an issue with this page on my site:

    http://ModestoBuzz.com/news/

    The page title is showing \”Blog\” even though the Page Title in the WordPress back end says News.

    Here are the contents of my template:

    <?php
    /*
    Template Name: CommunityNews
    */
    ?>

    <?php get_header(); ?>

    <div id="content" class="narrowcolumn">
    <?php include(TEMPLATEPATH."/news-sidebar.php");?><div style="clear:both;"></div>
    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)

  • enlightenmental1
    Participant

    @enlightenmental1

    that’s weird… any other WP pages using that template? like the blog page?

    try throwing this into the page

    <?php the_title(); ?>

    see what it returns

    using all-in-one-SEO ? all filled in?

    I notice your events page has no title… only “ModestoBuzz — “

    tubepress: is this just for admin, or have you modified to work sitewide for all users?

    looks interesting


    Roy
    Participant

    @roymckenzie

    I include the header file in the buddypress-member template directory ‘header.php.’ It uses a function: bp_page_title()

    <title><?php bp_page_title() ?></title>

    Does this function not take into account the actual title of the page as defined in the page editor?


    Roy
    Participant

    @roymckenzie

    Also, not using All-in-One SEO. Should I create a different header include?

    The events page…that might be a bug in the version of the plug-in I’m using. It’s not meant for live sites but works ok enough at this point.

    The TubePress plug-in is available site-wide. All I had to do was activate it site-wide.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page Titles for Custom Page Templates’ is closed to new replies.
Skip to toolbar