Hi,
what WPAdverts version are you using? The new ones are no longer using the “Advert Category:” prefix they just display the title like here on the demo site https://demo.wpadverts.com/pro/advert-category/video-games/
I am using the latest version 1.5.3 see example https://www.nigerpress.com/advert-category/clothing-fashion-beauty/
my custom template file for categories
<?php
/**
* The template for displaying Archive pages.
*
* Learn more: http://codex.ww.wp.xz.cn/Template_Hierarchy
*
* @package klein
*/
get_header( klein_header() ); ?>
<div class="content-heading ">
<div class="row">
<div class="col-md-12" id="content-header">
<div class="row">
<div class="col-md-12">
<?php $bread_mg_class = ''; ?>
<?php if ( ! function_exists( 'bcn_display' ) ) { ?>
<?php $bread_mg_class = 'no-mg-bottom'; ?>
<?php } ?>
<?php
the_archive_title( '<h1 class="entry-title '.$bread_mg_class.'">', '</h1>' );
?>
<!--breadcrumbs-->
<?php if ( function_exists( 'bcn_display' ) ) { ?>
<div class="klein-breadcrumbs">
<?php bcn_display(); ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?>
<div class="row">
<div id="primary" class="content-area col-sm-9 content-area">
<div id="content" class="site-content" role="main">
<div id="call-to-action" class="publish-cta">
<?php echo "<a href='https://www.site.com/create-new-advert/'>SELL / ADVERTISE YOUR BUSINESS </a>"; ?>
</div>
<div id="call-to-action" class="publish-cta">
<?php echo "<a href='https://www.site.com/explore-markets/'>SEARCH MARKET CATEGORIES </a>"; ?>
</div>
<?php
global $wp_query;
remove_filter("the_content", "adverts_the_content");
echo shortcode_adverts_list(array(
"category" => $wp_query->get_queried_object_id()
));
?>
</div><!-- #content -->
</div><!-- #primary -->
<div id="secondary" class="widget-area col-sm-3" role="complementary">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
Version 1.5.3 sets the title explicitly in includes/class-taxonomies.php file on line about 112 with the code
'post_title' => apply_filters( "adverts_tax_post_title", $queried_object->name ),
It uses only the term title, does not have the “Advert Category:” prefix anywhere, so maybe you have some custom code that does this?
Either way your template is setting the title with this code
the_archive_title( '<h1 class="entry-title '.$bread_mg_class.'">', '</h1>' );
you can replace it with
echo sprintf( '<h1 class="entry-title">%s</h1>', get_queried_object()->name )
Thanks your code replacement worked perfectly