2021-01-10 15:09:12

Related Docs

Do You Need Help or Expertise?

Is editing Source Code not Your Thing? Are you in a tight Time Schedule and need to deliver a fully scalable and safe solution fast to your Clients?

Maybe you want to incorporate the Software found on TukuToi unbranded and royalty free in your Clients Projects after customizing it as per your Projects requirements?

Or eventually you need some training on any WordPress Plugin, Theme or their creation and maintenance?

FilterAllow HTML in Excerpts

add_filter('get_the_excerpt', 'allow_html_in_excerpt');

function allow_html_in_excerpt($text) { // Fakes an excerpt if needed
	global $post;
	if ( '' == $text ) {
		$text = get_the_content('');
		$text = apply_filters('the_content', $text);
		$text = str_replace(']]>', ']]>', $text);
		/*just add all the tags you want to appear in the excerpt --
		be sure there are no white spaces in the string of allowed tags */
		$text = strip_tags($text,'<b><a><em><strong><h1><h2><h3><h4><h5><h6><ol><li>');
		/* you can also change the length of the excerpt here, if you want */
		$excerpt_length = 55;
		$words = explode(' ', $text, $excerpt_length + 1);
		if (count($words)> $excerpt_length) {
			array_push($words, '[...]');
			$text = implode(' ', $words);
return $text;