• Resolved Big Fish

    (@big-fish)


    I have filled out the Google API Key. I have selected Goo.gl as the shorturl method. I have verified that the links have been created by searching my database. I even added “.info” to one of the links in the meta_value of the meta_key named “mashsb_shorturl” and the info is correct. I can also see traffic activity within the Google API dashboard.

    The problem is that the short urls are not being used for the Twitter share button.

    I have W3 Total Cache installed and I’ve purged all caches multiple times.

    Anyone have any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Big Fish

    (@big-fish)

    I just signed up for a bitly account and got everything setup within MashShare and the Twitter share button still has the wrong URL. I can see that the links were created in my bitly account though.

    Thread Starter Big Fish

    (@big-fish)

    I figured it out. I was using the wrong include code within my template.

    Rene Hermenau

    (@renehermi)

    Thanks for the feedback

    Thread Starter Big Fish

    (@big-fish)

    This was the code that my theme was using:

    <?php echo do_shortcode('[mashshare url="'.esc_url(get_permalink()).'" title="'.esc_attr(get_the_title()).'"]');?>

    I changed my single.php file to:

    <?php echo do_shortcode('[mashshare]');?>

    I changed my index.php file to:

    <?php echo do_shortcode('[mashshare text="'.esc_attr(get_the_title()).'"]');?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Goo.gl shorturl is not added to Twitter button’ is closed to new replies.