Skip to:
Content
Pages
Categories
Search
Top
Bottom

No Title of Each Posts and Pages

  • Avatar of @mikey3d
    @mikey3d
    Participant

    @mikey3d

    There’re no title headline of posts and pages.

    Ex: Post:
    URL: mysite.com/hello-world/
    Title tag:
    It should be

    Ex: Page:
    URL: mysite.com/about/
    Title tag:
    It should be

    Why is that BuddyPress mess up the title?

    WordPress 3.0.1
    BuddyPress: Version 1.2.5.2
    Theme: BuddyPress Default 1.2.5.2

    Thanks, Mikey3D

Viewing 2 replies - 26 through 27 (of 27 total)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    The apply filters line at the end of the bp_page_title() / mikey_page_title() function sets the order of the title string, try changing it from:

    return apply_filters( ‘bp_page_title’, $blog_title . ‘ | ‘ . esc_attr( $title ), esc_attr( $title ) );

    to something like:

    return apply_filters( ‘bp_page_title’, esc_attr( $title ) . ‘ | ‘ . $blog_title, esc_attr( $title ) );

    Does that do the trick?

    Avatar of @mikey3d
    @mikey3d
    Participant

    @mikey3d

    Great, it does the trick!

    Can it apply another filter for homepage title with description? The description is setting in General Settings of Tagline.

    The homepage title is Home | My blog.

    Can the title with description be: My blog | Knowledge is power

    Thanks, Mikey3D

Viewing 2 replies - 26 through 27 (of 27 total)

You must be logged in to reply to this topic.