Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to return the group profile image for the og:image meta tag ?


  • domisny
    Participant

    @domisny

    Currently with our Budypress installation (Budypress 10.3.0. with WordPress 6.0 using customized child theme of Boss) the group page returns a null content for the og:image
    <meta property=”og:image” content=””>
    and no og:url
    This creates a log of issues when publishing on facebook etc.

    How could we have Budypress to return the group profile image for og:image and the group url for og:url ?

    Here is an example of one of our group link (we call a group and Expe) :

    https://capexpe.org/expes/rando-nordique-kungsleden-fev-22/

    Thanks for your help and suggestions

Viewing 1 replies (of 1 total)

  • domisny
    Participant

    @domisny

    FIXED

    I have found the code to do it
    <meta property=”og:image” content=”<?php bp_group_avatar_url($group->id); ?>” />

    Thanks for your help

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar