How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Why is the reviews sitemap called affiliates? – affiliates-sitemap.xml

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18906
    pabzjab
    Participant

    Hi,

    I have just noticed my reviews are being indexed as “affiliates”. The sitemap is affiliates-sitemap.xml, which shows all the casino reviews.

    Can this be changed, as you may be aware, Google does not like affiliate sites anymore, they are much harder to rank and if we are telling them that all the reviews on our website are just affiliate links/reviews I imagine this wont favour well when trying to rank our sites.

    I dont understand why the reviews section is not called reviews-sitemap.xml

    #18912
    admin
    Keymaster

    Hello pabzjab,

    You can put the following code in the function.php of the theme:

    function modify_affiliates_slug() {
    // Arguments array with the new slug ‘reviews’
    $args = array(
    ‘label’ => __(‘Reviews’),
    ‘public’ => true,
    ‘has_archive’ => true,
    ‘rewrite’ => array(‘slug’ => ‘reviews’),
    ‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘excerpt’, ‘comments’),
    // Add other arguments as needed
    );

    // Registering the custom post type with the new slug
    register_post_type(‘affiliates’, $args);
    }
    add_action(‘init’, ‘modify_affiliates_slug’, 20);

    Then you should go to Dashboard > Settings > Permalinks and save the permalinks

    There is a chance that the reviews you already have can be seen because the slug of the post type changes, if this happens you can inform us and we will look into it

    Thanks,

    #18929
    pabzjab
    Participant
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.