Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi ramonesmania,

    It looks like I don’t add the slug to the object for the templates. Seems like a reasonable thing to make available so I’ll try to add it in the future.

    In the meantime, you can do something like this:

    <?php
    $term = get_term( $this->id );
    $slug = $term->slug;
    ?>

    Are you editing the template files in the plugin? It includes a templating system so you can add template files directly to your theme. That way your changes won’t get overridden when the plugin is updated.

    Thread Starter ramonesmania

    (@ramonesmania)

    I can’t figure out how to do it.
    Temporary i’ll store the title as an id.

    Thread Starter ramonesmania

    (@ramonesmania)

    unfortunately i can’t use the title because the scroll to id script can’t handle spaces :/
    i must figure out how to use the slug :/

    Hi ramonesmania,

    In order to do this, you’ll need to know how to add and edit the template files in your theme. If you can do this, the link I posted in the last message will describe how you can create your own template to override the default plugin templates. Then you’ll need to use the code there to add the slug to your id.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Store slug as Menu Section id’ is closed to new replies.