[resolved] WordPress.com Stats and wp.me (3 posts)

  1. gb3k
    Posted 4 years ago #

    Hi Everybody, I have installed the WordPress.com Stats plugin in order to use wp.me shorten urls, but nothing regarding this appear in my wp-admin. I have correctly installed the plugin with a valid Key and have checked the "Shortlinks Publish WP.me shortlinks as metadata. This is a free service from WordPress.com." item in the plugin's area. But no news about the wp.me shortened links. I should have a button near the permalink box in the admin to get the wp.me url, isnt it?
    Thank for your help

  2. gb3k
    Posted 4 years ago #

    I have been researching a bit and I think it has something to do with post types. My posts are custom post types. Any idea?
    Kind regards,

  3. gb3k
    Posted 4 years ago #

    I think I got it.
    I have changed line 1157:
    return '';
    $type = 'p';
    The issue was that if the post type were not page, post or attachment the script aborts.
    I have tested it and seems to work fine with this change.
    Hopes it helps somebody.

Topic Closed

This topic has been closed to new replies.

About this Topic