1

You can use get_queried_object() to get the static page data, and then do something like so to get the excerpt of the page: echo get_the_excerpt( get_queried_object() ); // Or to apply filters just as the_excerpt() does: $excerpt = get_the_excerpt( get_queried_object() ); echo apply_filters( 'the_excerpt', $excerpt );


1

On a category archive page, you can use get_queried_object() to get the data of the current category in the main request, and get the slug like so: get_queried_object()->slug.


1

as of Wordpress 5.5 you can remove the prefix with this hook: add_filter('get_the_archive_title_prefix','__return_false');


Only top voted, non community-wiki answers of a minimum length are eligible