• Resolved blepore

    (@blepore)


    I love that this plugin has the ability to add tracking variables to the permalink. That being said, I tend to use the post slug as my campaign name. Right now I have to manually edit the setting prior to every post I make. I am requesting that the post slug be added as a possible template keyword so that it can be used with the tracking variable and would simplify the post creation process.

    I realize this might not be used by many people, but I think it would be handy for those of us that track this sort of information.

    http://wordpress.org/extend/plugins/subscribe2/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @blepore,

    I’m enabling {TITLE} as a keyword in the next release, would that work for you?

    Thread Starter blepore

    (@blepore)

    {TITLE} is already a keyword I see it on the Template screen …

    Recently I published a blog post at:

    http://www.brandbuildercompany.com/blog/2012/10/23/ipad-mini-apple/

    The title was “The iPad Mini is Coming”. The post slug would be the “ipad-mini-apple” part. I was hoping to be able to use that as a variable in the campaign tracking area.

    @blepore,

    Okay, I’ll take a look but there isn’t an easy way to get a post slug as there is no core function for it (and if permalinks are not on it might not exist).

    Thread Starter blepore

    (@blepore)

    Another name for it would be the post_name … there are a bunch of function’s I’ve seen online that are like ..

    function the_slug() {
    $post_data = get_post($post->ID, ARRAY_A);
    $slug = $post_data[‘post_name’];
    return $slug;
    }

    @blepore,

    I saw those too but it’s better to use a core function if there is one. I’ll see what can be done.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature Request:: post slug temlate keyword’ is closed to new replies.