Suggestion for featured_text excerpts at home
-
One sugestion for tc_handy_helpers.php … (if you use add_post_type_support( ‘page’, ‘excerpt’) )
….
//get the page/post object
$page = get_post($featured_page_id);//limit text to 200 car
$text = strip_tags($featured_text);
if (empty($text)){
if (!empty($page->post_excerpt)){
$text = strip_tags($page->post_excerpt);
}else{
$text = strip_tags($page->post_content);
}
}`
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggestion for featured_text excerpts at home’ is closed to new replies.