• Resolved Sheila

    (@sheilahoff)


    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/

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

    (@sheilahoff)

    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.

    Plugin Contributor Nick Young

    (@nickyoung87)

    @sheilahoff

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

    Thread Starter Sheila

    (@sheilahoff)

    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.

    Plugin Contributor Nick Young

    (@nickyoung87)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to combine text with image pinned’ is closed to new replies.