Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to write custom page titles and meta descriptions for Group pages

  • @davidveldt

    Participant

    Hello,

    I need to be able to write custom page titles and meta descriptions for each group page on my site (users will not be allowed to create the groups). Is there a way I could create a custom field or something that would insert into the <title> and meta description tags?

    OR I figure instead of creating Groups and finding a way to add this functionality, perhaps I could create Pages and then loop in Group functionality. So the page can be managed as a page on the admin side, but function as a group on the user-side. Would that be possible?

    I’m not sure what solution would be easiest and best to implement. Any guidance or ideas would be greatly appreciated. I am running WordPress Version 4.1, BuddyPress Version 2.1.1. The site is http://www.hometownracer.com (Groups are called Tracks throughout the site).

Viewing 1 replies (of 1 total)
  • @r-a-y

    Keymaster

    For the actual overriding of the page title and meta tags, you’ll need, hook into 'wp_head' action and write your tags for meta. For page title, you’ll need to override the 'wp_title' or 'wp_title_parts' filter.

    If you need frontend management, I would probably write the SEO data into the groupmeta DB table. Write a group extension plugin so a group admin can input the title and meta description.

    Group extension codex article is here:

    Group Extension API

    Tie the two together and you should be able to accomplish what you want.

Viewing 1 replies (of 1 total)
  • The topic ‘How to write custom page titles and meta descriptions for Group pages’ is closed to new replies.
Skip to toolbar