Here the Thing im Facing, im using a Peepso Groups plugin, Which defines a php variable $g_name
as group name, which is found in plugins/peepso-groups/templates/group_header.php
this $g_name
variable can be placed anywhere in plugins/peepso-groups/templates/group_header.php
and i will get Group name as output.
But when i try to place this $_gname
in my OG:Title tag in Header.php, this doesnt work, i have tried global variable, but Global variable declared in plugins/peepso-groups/templates/group_header.php
desnt work, but Global Variable seems to be Working in plugins/peepso-groups/groups.php
, but when i call $g_name
in plugins/peepso-groups/groups.php
nothing happens.
value of Gname $g_name=$PeepSoGroup->name;
//Shows Peepso group name.
Here the Thing im Facing, im using a Peepso Groups plugin, Which defines a php variable $g_name
as group name, which is found in plugins/peepso-groups/templates/group_header.php
this $g_name
variable can be placed anywhere in plugins/peepso-groups/templates/group_header.php
and i will get Group name as output.
But when i try to place this $_gname
in my OG:Title tag in Header.php, this doesnt work, i have tried global variable, but Global variable declared in plugins/peepso-groups/templates/group_header.php
desnt work, but Global Variable seems to be Working in plugins/peepso-groups/groups.php
, but when i call $g_name
in plugins/peepso-groups/groups.php
nothing happens.
value of Gname $g_name=$PeepSoGroup->name;
//Shows Peepso group name.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.