WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Like Button
[resolved] Like-Counter is wrong after chaning permalink-settings (3 posts)

  1. freakscornerde
    Member
    Posted 1 year ago #

    Hi,

    after changing the settings for the permalinks from Standard to /%year%/%monthnum%/%day%/%postname%/ every article has now an amount of 0 likes. How can I fix this problem by hand or maybe can you make an update for your plugin?

    http://wordpress.org/extend/plugins/facebook-button-plugin/

  2. freakscornerde
    Member
    Posted 1 year ago #

    Hi,

    I fixed the problem by myself by changing line 448 of facebook-button-plugin.php from
    $permalink_post = get_permalink ( $post->ID );

    to

    $permalink_post = home_url('?p=' . $post->ID);

    But still I would recommend that you change this line to a static value only dependent of the $post->ID instead of the permalink.

  3. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    I disagree with the author of previus post.
    On the one hand the URL will be always permanent. On the other hand, if page has an URL:

    http://domain.com/topic/plugin-facebook

    And we will make 'like' for the page below:

    http://domain.com?p=142

    then:

    - only our plugin will display 'like' correctly and other plugins will be focused on get_permalink ( $post->ID );

    - it will be expanded to incorrect link, perhabs not positive influence on website seo (searchers like correctitude and accuracy).

    It is a common knowledge that the URL changing (no matter, domain name, structure, page name) always lead to loss 'like' on the fb, tw, g+ resources, that is why people who initially expect website promotion thinking over it and hereafter doesn't change URL of the website.

    Best regards,
    Oksana

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic