WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] choose fields Jetpack posts to Pinterest (6 posts)

  1. Gabe462
    Member
    Posted 1 year ago #

    Using Jetpack's social sharing module, I'd like to change what content is shared when a visitor "pins" a post. Currently it's using the post title. I'd like to use the post content.

    How can I extend the plugin to do this?

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

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    While the original Pinterest button cannot be edited, you can create your own customized button by following the instructions here:
    http://en.support.wordpress.com/sharing/#adding-your-own-service

  3. Gabe462
    Member
    Posted 1 year ago #

    It seems like it would go somethign like this, but I'm not having any luck:

    https://pinterest.com/login/?next=/pin/create/button/?url=%post_url%&description=%post_excerpt%&media=http://imgurl.jpg

    The biggest problem is that there's not a variable for image url. And really I need the_content, not the excerpt, but I can probably set the excerpt longer. But even when I've entered a full image URL, the above does not work. Can you help?

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I am afraid I do not know the different parameters accepted by the Pinterest Share URL. If the "media" parameter does not work for you, you'll have to contact Pinterest about this.

    And really I need the_content, not the excerpt, but I can probably set the excerpt longer.

    That seems to be the best solution indeed, since the post content might contain more than 500 characters.

    You can find out how to change excerpt's length here:
    http://codex.wordpress.org/Function_Reference/the_excerpt#Control_Excerpt_Length_using_Filters

  5. Gabe462
    Member
    Posted 1 year ago #

    What about accessing the image url? Is there a filter I can use to create a new variable?

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    We do not offer any tag to access the image URL, nor any filter to create a new variable for the custom sharing services.
    You can have a look at it here:
    http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/sharedaddy/sharing-sources.php#L953

    I am afraid I was wrong to suggest you to create your own custom service for Pinterest; while you'd be able to change the pin description, you won't be to add an image to the pin.

    At this point, I can only suggest that you build you own Pin button. Sorry not to be able to help you more!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic