WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest Pin It Button For Images
[resolved] Any way to pull text from somth othen than blog post ti (5 posts)

  1. ritarose
    Member
    Posted 1 year ago #

    Can I make it pull the description from a field other than the title of the blog post?
    Talking about this part of the php:

    $pindescription = '&description='.urlencode(get_the_title());

    thanks!!!!!!

    http://wordpress.org/extend/plugins/pinterest-pin-it-button-for-images/

  2. Canha
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ritarose,

    Yeah, you can change it however you want. I'm not adding this as a feature just yet, but I might in the near future.

    Just make sure you have the "urlencode" there and just change the get_the_title() to get the field you'd like to show up.

    Cheers.

  3. brentdeitrich
    Member
    Posted 1 year ago #

    I would definitely like to see this pull the image title instead of the description .. I fill in my image titles for SEO purposes and using the standard Pinterest button, that's what it pulls from.

    I might see if I can modify the PHP to do this for the time being.

  4. max900
    Member
    Posted 1 year ago #

    i'd like to pull the image title as well.

    though I don't know php like the first poster. so... what file do we edit and what exact line do we change? what do we change it to? is someone able to help?

    i assume we just need to make one edit in one place telling it to get image title vs. post title but i'm not sure. if there are more places than one to edit can someone specify?

    thanks!

  5. donarba
    Member
    Posted 1 year ago #

    i'd really like to know how to pull image title's as well. could somebody share how to do this with me, please?

    thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.