Home > Forum

Support Forum

Post Image Stripped From Content

Discussion forum for WP Socializer plugin

Post Image Stripped From Content

Postby vividlilac » Sat Sep 11, 2010 6:32 pm

Hello,

I have an image inserted into the content of some of my posts, and when the I enable the WP Socializer plugin, the images are stripped from the content. I have tried various methods to see if I can figure out what is going on without changing the plugin code, but haven't found a simple solution yet.

If I use the "Temporarily disable all WP-Socializer buttons", and manually call the wp_socializer() in the template files, the post image and social buttons will show up, but the format of the social buttons gets messed up.

Any help would be greatly appreciated!!

Here is an example link:
http://wakodahatcheewetlands.com/2005/0 ... d-grackle/

Wordpress 3.0.1
WP Socializer 1.0Hell
vividlilac
 
Posts: 3
Joined: Sat Sep 11, 2010 5:48 pm

Re: Post Image Stripped From Content

Postby vaakash » Mon Sep 13, 2010 12:04 pm

Soon i will look into the problem
User avatar
vaakash
Site Admin
 
Posts: 672
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: Post Image Stripped From Content

Postby darthmortar » Mon Sep 13, 2010 2:44 pm

I have the same problem, I use latest version of both WordPress and WP Socializer, for excerpt I use Advanced Excerpt.

My solution is to disable WP Soc. in the settings for the plugin, not from the plugins page, then manually load WP Soc. stylesheet with (place in header between <head> and </head>);

Code: Select all
<!-- Start WP Socializer | Social Buttons CSS File -->
<link rel="stylesheet" type="text/css" media="all" href="http://www.yourdomain.com/wp-content/plugins/wp-socializer/wp-socializer-buttons-css.css" />
<!-- End WP Socializer | Social Buttons CSS File -->


and then call it manually with;

Code: Select all
<?php
if(function_exists('wp_socializer')){
      echo wp_socializer('social-bts-32px');
}
?>


Perhaps not the best way, but the only way to prevent it from disable the images-part.
darthmortar
 
Posts: 1
Joined: Mon Sep 13, 2010 2:35 pm

Re: Post Image Stripped From Content

Postby vividlilac » Mon Sep 13, 2010 3:04 pm

darthmortar wrote:I have the same problem, I use latest version of both WordPress and WP Socializer, for excerpt I use Advanced Excerpt.

My solution is to disable WP Soc. in the settings for the plugin, not from the plugins page, then manually load WP Soc. stylesheet with (place in header between <head> and </head>);.


Thank you darthmortar, I will give that a try for now. :)
vividlilac
 
Posts: 3
Joined: Sat Sep 11, 2010 5:48 pm

Re: Post Image Stripped From Content

Postby vaakash » Tue Sep 14, 2010 11:48 am

I didn't experience this problem in my localsite and even i saw the image in the page you linked.

I tested the plugin in every different setting and placement and it worked well in all cases.
Can you please mention the template conditions i.e show in excerpt, show in tag, show in posts etc .
Also mention the position (above or below)

This will narrow my debugging. Thanks for your time
User avatar
vaakash
Site Admin
 
Posts: 672
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: Post Image Stripped From Content

Postby vividlilac » Tue Sep 14, 2010 12:57 pm

vaakash wrote:I didn't experience this problem in my localsite and even i saw the image in the page you linked.

I tested the plugin in every different setting and placement and it worked well in all cases.
Can you please mention the template conditions i.e show in excerpt, show in tag, show in posts etc .
Also mention the position (above or below)

This will narrow my debugging. Thanks for your time


The image is currently showing on the page I linked to because I have to plugin set to "Temporarily disable all WP-Socializer buttons", and manually call wp_socializer() in the template file. If I do not disable the buttons, then the post image will now show up.

I am currently creating a child theme from the Twenty Ten theme. In my single.php template file, I am mainly using the standard loop functions, and call the wp_socializer() above and below the post.

Code: Select all
   if ( have_posts() )
      while ( have_posts() ) :
         the_post();
         
         get_template_part( 'nav', 'single' );
         ?>
         
         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
         <h1 class="entry-title"><?php the_title(); ?></h1>
            <div class="entry-meta">
            <?php twentyten_posted_on(); ?>
            </div>

            <div class="entry-content">
               <?php
               if (function_exists('wp_socializer')){
                    echo wp_socializer('template-1');
               }
               ?>
               <?php the_content(); ?>


Thank you for your time, and I hope this helps!
vividlilac
 
Posts: 3
Joined: Sat Sep 11, 2010 5:48 pm

Re: Post Image Stripped From Content

Postby vaakash » Thu Sep 16, 2010 11:21 am

I tested the plugin in all the versions of TwentyTen theme with some images in the post. But everything worked fine for me. Actually, no filtering is made to the content when printing the content. A simple and recommended concept of inserting buttons above/below post is followed in WP Socializer plugin.

Only some custom modifications are made to the post excerpt. When the excerpt contains a text, some filtering of tags are made when displaying. When the post contains no excerpt, no filtering is made.

This is made to for a major unknown bug. I think this can cause problem to the posts. Please check whether the post contains excerpt or not.

Thank you !
User avatar
vaakash
Site Admin
 
Posts: 672
Joined: Sun Jan 17, 2010 11:15 am
Location: India


 


  • Related topics
    Replies
    Views
    Last post


Return to WP Socializer


phpBB SEO