Hello!
I ve tried
function db_page_hero_excerpt() {
ob_start();
global $post;
if ( has_excerpt( $post->ID ) ) {
?>
<div class="page-hero-excerpt">
<?php echo the_excerpt(); ?>
</div>
<?php
}
return ob_get_clean();
}
add_shortcode( 'page_hero_excerpt','db_page_hero_excerpt' );
To get category description on my category pages but i dont get nothing.
Also on author archive pages i have added a shortcode from a plugin for the author box and it doesnt work
http://thefinterestcom.kinsta.cloud/author/johnitos/
Any idea why? As i have seen in other threads shortcodes should work right?