![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
We have customized our code on our home page to display a combination of videos and pictures on the bottom section. Everything was working great until we added the Facebook Sharecount widget. http://vaclassroomblog.com/ The issue is that now you see the code for the widget in the preview of the content for the teaser posts on the bottom, example: (heading: training tidbits; title: Five Reasons I love Facebook Fan Pages) you see the following in the description: Quote:
Of course this varies each time depending on the post. Question, is there a code I can insert to avoid this. Here it is currently: Code:
<?php function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
$content = strip_tags($content);
if (strlen($_GET['p']) > 0) {
echo "
";
echo $content;
echo "<a href='";
the_permalink();
echo "'>"."Read More →</a>";
echo "</p>";
}
else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo "
";
echo $content;
echo "...";
echo "<a href='";
the_permalink();
echo "'>".$more_link_text."</a>";
echo "</p>";
}
else {
echo "
";
echo $content;
echo "<a href='";
the_permalink();
echo "'>"."Read More →</a>";
echo "</p>";
}
}
?>
They do have a manual option to enter this widget - what would be the safest place to enter and where? The TweetMeMe had no issues with this! Thanks! |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How To ADD The Facebook share button | teamturbo | General Discussion | 3 | 10-29-2009 08:44 PM |
| facebook share button | kevmarl | General Discussion | 1 | 10-28-2009 07:06 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us