WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest "Pin It" Button
[resolved] How to combine text with image pinned (5 posts)

  1. Sheila
    Member
    Posted 9 months ago #

    I'm new to this plug-in. A client had it already installed and apparently my predecessor had it configured in a way that allowed the photo and quote (each blog post is just a brief quote) to appear together as one when pinned. It stopped doing that and I have no idea why it stopped OR how to reconfigure it back to the desired way. I hope this even makes sense. I'd appreciate any help.

    You can see the correct way that she wants it returned to by viewing her pins here: http://www.pinterest.com/WordsOfArtBlog/pins/

    And you can see if you go to her blog here http://www.transformrelationships.com/blog/ and click on PinIt you'll see that you get multiple images and separate text but not any image with text combined.

    Thanks for any guidance you can offer.

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

  2. Sheila
    Member
    Posted 9 months ago #

    I'm NOT a coder, but after reading your help stuff I decided to look at the functions.php file. Sure enough my predecessor added this code:

    function gh_add_pinterest_via_shortcode( $content ) {
    	 if ( /*current_user_can( 'manage_options' ) &&*/ is_single() || is_home() ) {
    		$pin_content = str_replace("'", " ", trim( strip_shortcodes( rtrim(strip_tags( get_the_content() ), "Daily Quote") )));
    		$content = $content . do_shortcode("[pinit description='$pin_content']") ;
     	}
    	return $content;
    }
    add_filter( 'the_content', 'gh_add_pinterest_via_shortcode');

    So any idea why that would've stopped working? It's in a customized child theme of 2010 if that tells you anything. Thanks.

    NOTE: I removed a backtick from that code between the quote marks so it would all display as code.

  3. Nick Young
    Member
    Plugin Contributor

    Posted 9 months ago #

    @SheilaHoff

    Sorry you are having some troubles with this. Could you tell me what settings you have under "General" and "Post Visibility"?

  4. Sheila
    Member
    Posted 9 months ago #

    thanks for responding. I found the fellow who did the work initially and he's going to fix it for us. AND I determined that we did indeed update the plug-in on Friday which is what caused this.

    General has Image is pre-selected checked and Save your settings when uninstalling this plugin. Useful when upgrading or re-installing is also checked.

    And Post Visibility only has this checked: Below Content and nothing else.

  5. Nick Young
    Member
    Plugin Contributor

    Posted 9 months ago #

    Yeah it seems like all of your settings should be working with this, but since it is custom added code I am not sure where to go from here.

    I know you said the guy who originally did this for you is going to take a look, but let me know if there's anything else that I can do for you.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.