This Solution of Shortcode always displayed at the top of the page for the WordPress plugin
Old Code
post_name;
$breadcrumbs_url = '/article';
$term_obj_list = get_the_terms( $post->ID, 'type' );
$url_string = '
Home
';
foreach($term_obj_list as $term) {
$breadcrumbs_url .= '/'.$term->slug;
$url_string .= '
» '.$term->name.'
';
}
$url_string .= '
» '.$post->post_title.'
';
echo $url_string;
}
?>
Add this code after function
ob_start();
Add this code before end function
return ob_get_clean();
New updated code
post_name;
$breadcrumbs_url = '/article';
$term_obj_list = get_the_terms( $post->ID, 'type' );
$url_string = '
Home
';
foreach($term_obj_list as $term) {
$breadcrumbs_url .= '/'.$term->slug;
$url_string .= '
» '.$term->name.'
';
}
$url_string .= '
» '.$post->post_title.'
';
echo $url_string;
return ob_get_clean();
}
?>