Description field in categories do not get properly updated via JSOn FileMaker T
-
function custom_archive_description_shortcode($atts)
{
ob_start();
the_archive_description(‘‘, ”);
$output = ob_get_clean();$output = wpautop($output); $output = preg_replace('/[“”]/u', '"', $output); $output = wptexturize($output); // Apply wp_kses to the output $allowed_tags = array( 'div' => array( 'class' => array(), ), 'p' => array(), 'a' => array( 'href' => array(), 'title' => array(), ), 'span' => array( 'class' => array(), ), 'strong' => array(), 'em' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), 'blockquote' => array(), ); $output = wp_kses($output, $allowed_tags); // Output the content return $output;
}
add_shortcode(‘archive_description’, ‘custom_archive_description_shortcode’, 99);// allow html in category and taxonomy descriptions
remove_filter( ‘pre_term_description’, ‘wp_filter_kses’ );
remove_filter( ‘pre_link_description’, ‘wp_filter_kses’ );
remove_filter( ‘pre_link_notes’, ‘wp_filter_kses’ );
remove_filter( ‘term_description’, ‘wp_kses_data’ );Not working please help me.
The page I need help with: [log in to see the link]
- The topic ‘Description field in categories do not get properly updated via JSOn FileMaker T’ is closed to new replies.