• Resolved ncovello

    (@ncovello)


    Hello again,

    There’s a way to show only the child category?

    for ex.
    We have the parent category “chirurgie esthétique” and the child “equipement”, this shows:
    “chirurgie esthétique / equipement” in the ad. And we want to show only “equipement” (because in some ads we have too many sub-categories and repeating in everyone the parent becomes too repetitive)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Currently, the only way to do that is to open file wpadverts/templates/single.php and replace code <?php echo join( " / ", advert_category_path( $c ) ) ?> with <?php echo esc_html( $c->name ) ?>.

    Note that the changes you will make in the templates file will be overwritten on WPAdverts, in order to avoid this you can create a child template for single.php file as explained here https://wpadverts.com/documentation/child-themes-and-templates/

Viewing 1 replies (of 1 total)
  • The topic ‘Breadcrumb only child category’ is closed to new replies.