Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#1196 closed defect (bug) (no action required)

wordpress "Page" title not included in <title></title> using bp_page_title()

Reported by: lostdeviant's profile lostdeviant Owned by:
Milestone: 1.1.2 Priority: major
Severity: Version:
Component: Keywords: title, title tag, page
Cc:

Description

I tried to work around this by changing the

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

to

<?php if(is_page()) { ?>

<title><?php wp_title(); ?> - <?php bp_page_title() ?> </title>

<?php } else { ?>
<title><?php bp_page_title() ?> </title>
<?php } ?>

but then the most recent post title appeared in a member profile page so I had to go back to the original.

the page title should actually show the page parent (if exists) and the page's actual title..

I really think the order of the title is off in general. instead of starting with the site name, it should start with the post/page/buddypress page title then parent or description (like member, group, profile) then the name of the site or blog.

Change History (1)

#1 @DJPaul
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Have a look at the function declaration in bp-core-templatetags.php. You can use the bp_page_title filter to change the output according to your own preferences. Order/content of the title is pretty subjective.

Note: See TracTickets for help on using tickets.