Skip to:
Content
Pages
Categories
Search
Top
Bottom

Function to return current group slug (even if in group sub levels)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of David Dean
    David Dean
    Participant

    @ddean

    You can use `$group->true_slug` to skip the path info and just get the group slug for a subgroup

    You could also use `basename({whatever you are using to get the slug})`

    Avatar of johnnymestizo
    johnnymestizo
    Participant

    @johnnymestizo

    I’m no php expert – sorry!

    How do I put the slug value in $var123

    From within the groups single.php

    Thanks for your patience,

    Johnny

    ============
    EDIT
    ============

    $var123 = $this->true_slug;

    I think I got it :)

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.