
// Add "Archive Title" field to Regions
add_action( 'region_edit_form_fields', 'listeo_region_archive_title_field', 10, 2 );
add_action( 'region_add_form_fields', 'listeo_region_archive_title_field_add', 10, 2 );
add_action( 'edited_region', 'listeo_save_region_archive_title', 10, 2 );
add_action( 'create_region', 'listeo_save_region_archive_title', 10, 2 );

function listeo_region_archive_title_field_add( $term ) {
    ?>
    
        
Archive H1 Title

        
        
This title will appear as the H1 on the region archive page. Leave blank to use the region name.

    
    }

function listeo_region_archive_title_field( $term, $taxonomy ) {
    $title = get_term_meta( $term->term_id, 'region_archive_title', true );
    ?>
    
        
Archive H1 Title

        
            
            
This title will appear as the H1 on the region archive page. Leave blank to use the region name.

        
    
    }

function listeo_save_region_archive_title( $term_id ) {
    if ( isset( $_POST['region_archive_title'] ) ) {
        update_term_meta( $term_id, 'region_archive_title', sanitize_text_field( $_POST['region_archive_title'] ) );
    }
}

// Add "Archive Title" field to Listing Categories
add_action( 'listing_category_edit_form_fields', 'listeo_cat_archive_title_field', 10, 2 );
add_action( 'listing_category_add_form_fields', 'listeo_cat_archive_title_field_add', 10, 2 );
add_action( 'edited_listing_category', 'listeo_save_cat_archive_title', 10, 2 );
add_action( 'create_listing_category', 'listeo_save_cat_archive_title', 10, 2 );

function listeo_cat_archive_title_field_add( $term ) {
    ?>
    
        
Archive H1 Title

        
        
This title will appear as the H1 on the category archive page. Leave blank to use the category name.

    
    }

function listeo_cat_archive_title_field( $term, $taxonomy ) {
    $title = get_term_meta( $term->term_id, 'cat_archive_title', true );
    ?>
    
        
Archive H1 Title

        
            
            
This title will appear as the H1 on the category archive page. Leave blank to use the category name.

        
    
    }

function listeo_save_cat_archive_title( $term_id ) {
    if ( isset( $_POST['cat_archive_title'] ) ) {
        update_term_meta( $term_id, 'cat_archive_title', sanitize_text_field( $_POST['cat_archive_title'] ) );
    }
}
Replace archive page H1 with custom title
add_filter( 'get_the_archive_title', 'listeo_custom_archive_title', 20 );

function listeo_custom_archive_title( $title ) {
    if ( is_tax( 'region' ) ) {
        $term = get_queried_object();
        $custom_title = get_term_meta( $term->term_id, 'region_archive_title', true );
        if ( ! empty( $custom_title ) ) {
            return $custom_title;
        }
    }
    if ( is_tax( 'listing_category' ) ) {
        $term = get_queried_object();
        $custom_title = get_term_meta( $term->term_id, 'cat_archive_title', true );
        if ( ! empty( $custom_title ) ) {
            return $custom_title;
        }
    }
    return $title;
}
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//rehbar.pk/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://rehbar.pk/post-sitemap.xml</loc>
		<lastmod>2026-05-11T08:07:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/page-sitemap.xml</loc>
		<lastmod>2026-02-24T10:20:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/list-sitemap.xml</loc>
		<lastmod>2026-05-06T11:22:24+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/listing-sitemap.xml</loc>
		<lastmod>2026-05-07T06:04:58+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/listing-sitemap2.xml</loc>
		<lastmod>2026-05-07T06:04:58+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/category-sitemap.xml</loc>
		<lastmod>2026-05-11T08:07:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/listing_category-sitemap.xml</loc>
		<lastmod>2026-05-07T06:04:58+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/listing_feature-sitemap.xml</loc>
		<lastmod>2026-05-06T11:54:20+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/region-sitemap.xml</loc>
		<lastmod>2026-05-07T06:04:58+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://rehbar.pk/author-sitemap.xml</loc>
		<lastmod>2026-03-07T08:22:42+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->