BuddyDev

Search

[Resolved] Static Title for Link Pages to Groups Plugin

  • Participant
    Level: Enlightened
    Posts: 21
    Jon on #4992

    In the Link Page to Group plugin, is there a way to make the linked pages that shows up in the group menu show a static title, even though it directs the user to a different page depending on the group?

    I would like to add different pages to the different groups but I would like each group’s menu to say the same thing.

    Ex: I have “page 1” that is linked to “group 1” and “page 2” that is linked to “group 2”
    instead of the page title on the groups showing up as “page 1” and “page 2” in the respective groups menus, I would like to make the page title to be the same no matter what group directs to what page.

    So each group will have different pages linked to them but the menu titles in the group say the same thing.

    I hope that makes sense.

  • Participant
    Level: Enlightened
    Posts: 21
    Jon on #4993

    Sorry I figured it out…

    On line 77 of the plugin I changed:

    get_the_title( $post ) to “My Custom Title”

    If there was a better way of doing this I’m happy to know!

    Thank you

    • This reply was modified 8 years, 4 months ago by Jon.
    • This reply was modified 8 years, 4 months ago by Jon.
    • This reply was modified 8 years, 4 months ago by Jon.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #5009

    Hi Jon,
    You did the right change. That is what I would have suggested too.

You must be logged in to reply to this topic.

This topic is: resolved