0

How do I register a shortcode to add the manual post excerpt anywhere within the same post? Does this shortcode already exist in WP?

Thanks!

2

Just add this to your child theme's functions.php file:

add_shortcode( 'output_post_excerpt', 'get_the_excerpt' );

Then use [output_post_excerpt]

  • That was quick and easy. Thanks a lot! – auntie Apr 26 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.