52saturdaymornings
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Duplicating Text to Top of PostFor anyone who has this problem, I placed this code in the functions.php,
function wp_new_excerpt($text)
{
if ($text == ”)
{
$text = get_the_content(”);
$text = strip_shortcodes( $text );
$text = apply_filters(‘the_content’, $text);
$text = str_replace(‘]]>’, ‘]]>’, $text);
$text = strip_tags($text);
$text = nl2br($text);
$excerpt_length = apply_filters(‘excerpt_length’, 55);
$words = explode(‘ ‘, $text, $excerpt_length + 1);
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, ”);
$text = implode(‘ ‘, $words);
}
}
return $text;
}
remove_filter(‘get_the_excerpt’, ‘wp_trim_excerpt’);
add_filter(‘get_the_excerpt’, ‘wp_new_excerpt’);Forum: Themes and Templates
In reply to: Duplicating Text to Top of Post@augustin56 , you are not seeing this excerpt at the top?
“Kyla Ewert, Abbotsford,BC Annie Otzen, Sioux Falls, SD Breanna Peterson, Kodiak, Alaska Nichole Reid – Winchester, VA Suzanne Gipson, Columbus, Ohio Maria Manco – Cleveland, Ohio Heather Robinson – Durham, NC Alana Rasbach – Nashville, TN Emily Robinson – Hollywood, Florida DeAnna McCasland – Wardensville, WV Missy Day – Woodland, CA Jen Downer | She Saw Things – Portland, […]”
Forum: Themes and Templates
In reply to: Duplicating Text to Top of Postthis is my current CSS for my header…
<head>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
<meta name=’viewport’ content=’width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no’ /><link rel=”profile” href=”http://gmpg.org/xfn/11″ />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php echo bloginfo(‘rss2_url’); ?>”><?php wp_head(); ?>
</head>I tried changing it to
<title><?php wp_title(“); ?></title>
and it gave an error.