+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23

Thread: WP.ME Shortlink Generator

  1. #1
    Jeffro's Avatar
    Jeffro is offline WPTavern Forum Admin
    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    2,107

    Icon5 WP.ME Shortlink Generator

    Just noticed that the latest version of the WordPress.com stats plugin includes the WP.ME short URL generator as promised but I can't find the button which is supposed to be next to the edit post button.

    http://wordpress.org/extend/plugins/stats/other_notes/

    Anyone else?

  2. #2
    itsonlybarney is offline Hello World
    Join Date
    Dec 2009
    Location
    Sydney
    Posts
    1

    Default

    I found the button you are referring it.

    It is actually next to the Edit Permalink button, and appears once you have entered a post title.

  3. #3
    Jeffro's Avatar
    Jeffro is offline WPTavern Forum Admin
    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    2,107

    Default

    Are you running WordPress 2.9 or 2.8.6?

  4. #4
    mfields's Avatar
    mfields is offline Here For The Peanuts
    Join Date
    Nov 2009
    Location
    Portland, OR
    Posts
    148

    Default

    I found it as well - I am running 2.9 RC1

  5. #5
    Jeffro's Avatar
    Jeffro is offline WPTavern Forum Admin
    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    2,107

    Default

    Thanks. I'm going to upgraded to 2.9 RC 1 on WPTavern.com later today. Hoping to see the button after I do that.

  6. #6
    Otto's Avatar
    Otto is offline Trac Master
    Join Date
    Apr 2009
    Location
    Memphis, TN
    Posts
    770

    Default

    Few interesting bits I noticed:

    - There's a nice new function in the wp.com stats plugin that you might find useful. function get_shortlink( $post_id, $force_numeric = false ). Could be handy for some theming action.

    - The shortlink is part of the wp.com system, so you have the shortlinks even if you don't see the button there.

    - BTW, if you leave post_id empty or zero, the generated shortlink links to your blog's home page.

    - You'll also find that the plugin adds a <link rel="shortlink"> into the wp_head. The rel=shortlink is starting to be a highly supported microformat standard. Hopefully we'll start to see Twitter clients and the like take advantage of it soon.

    - Another thing it does is a bit less obvious, the shortlink is added to the HTTP headers using the Link: method, for clients wishing to save bandwidth by only doing a HEAD request.

    - The shortlink method uses an algorithmic generation method. That is, it doesn't have to have the server generate it every time. Your blog is assigned an internal ID number, and that, combined with your post id number, creates the link. Side benefits of this are that a) changing the permalink doesn't change the shortlink, and b) very fast redirection since there's only one lookup for your blog's id in the wp.com stats system, not a lookup table for each and every possible permalink.

    - Every shortlink takes the form http://wp.me/stuff-more. Only the "more" changes for each post. The stuff part is your blog id, the more part is your post id. Both encoded, of course.

  7. #7
    mfields's Avatar
    mfields is offline Here For The Peanuts
    Join Date
    Nov 2009
    Location
    Portland, OR
    Posts
    148

    Default

    Otto, Thanks for the tips!!! I always wanted to include something like this in my site, but it was far from a priority for me. Now that it comes installed, I think I will.

    Thanks too to Jeffro for bringing this to my attention - I had no idea

  8. #8
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,717

    Default

    Quote Originally Posted by Otto View Post
    Few interesting bits I noticed:

    - There's a nice new function in the wp.com stats plugin that you might find useful. function get_shortlink( $post_id, $force_numeric = false ). Could be handy for some theming action.

    - The shortlink is part of the wp.com system, so you have the shortlinks even if you don't see the button there.

    - BTW, if you leave post_id empty or zero, the generated shortlink links to your blog's home page.

    - You'll also find that the plugin adds a <link rel="shortlink"> into the wp_head. The rel=shortlink is starting to be a highly supported microformat standard. Hopefully we'll start to see Twitter clients and the like take advantage of it soon.

    - Another thing it does is a bit less obvious, the shortlink is added to the HTTP headers using the Link: method, for clients wishing to save bandwidth by only doing a HEAD request.

    - The shortlink method uses an algorithmic generation method. That is, it doesn't have to have the server generate it every time. Your blog is assigned an internal ID number, and that, combined with your post id number, creates the link. Side benefits of this are that a) changing the permalink doesn't change the shortlink, and b) very fast redirection since there's only one lookup for your blog's id in the wp.com stats system, not a lookup table for each and every possible permalink.

    - Every shortlink takes the form http://wp.me/stuff-more. Only the "more" changes for each post. The stuff part is your blog id, the more part is your post id. Both encoded, of course.
    Wow, that's slick! And good to know that the shortlink doesn't change if the ("pretty") permalink changes.
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  9. #9
    zamoose's Avatar
    zamoose is offline Hello World
    Join Date
    Nov 2009
    Location
    Philadelphia, PA
    Posts
    43

    Default

    What happens if you have the YOURLs plugin (or similar) installed? I don't want wp.me links as canonical short links for my page -- that's what I have stwrt.org for...

  10. #10
    Viper007Bond's Avatar
    Viper007Bond is offline Hello World
    Join Date
    Aug 2009
    Location
    Portland, OR, USA
    Posts
    4

    Default

    Quote Originally Posted by zamoose View Post
    What happens if you have the YOURLs plugin (or similar) installed? I don't want wp.me links as canonical short links for my page -- that's what I have stwrt.org for...
    I've put in a request via back channels, but meanwhile:

    PHP Code:
    add_action'plugins_loaded''viper007bond_is_awesome' );

    function 
    viper007bond_is_awesome() {
        
    remove_action('wp_head''shortlink_wp_head');
        
    remove_action('wp''shortlink_header');


+ Reply to Thread
Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts