Hide Authors with No Posts from Sitemap

#60346
  • Resolved Colin Charisma
    Rank Math free

    Hi there,
    My website creates an author-sitemap.xml for all of our authors.
    Our website uses Taxonomy “Download” for the products. A custom post type.
    I want to make it so that Authors with No Posts, do not show up on this list.
    Only Authors who have posted Downloads, will actually show.
    Essentially this showing up as “Pages without internal follow links” for search engines.
    Can you please let me know if there is a piece of code I can change to fix/update this?
    Many thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • ‘hide_empty’ => true,
    is one option

    possibly in the class-rewrite.php file?

    I dont know enough coding to be able to determine this
    Help anyone?

    This post was marked as resolved by the Support Team
    IT IS NOT RESOLVED

    Hello,

    Thank you for contacting Rank Math today.

    Our website uses Taxonomy “Download” for the products. A custom post type.

    Please help us understand this further, are your authors under a taxonomy type or a post type.

    If it is under taxonomies, have you tried the option to exclude empty terms under Rank math sitemap settings?
    img

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi Michael,
    Thanks for your reply

    Our Authors are not under a custom post type or taxonomy.

    All I am looking for is for something along the lines of
    Include Empty Terms = off for the AUTHORS Sitemap

    This way to hide only authors who have no posts
    from the site map

    Best Regards,
    Colin

    Hello,

    Thanks for the follow up

    If you mark the particular author profile as noindex, it will not appear in the sitemap:
    img

    I’ll however consult with the dev team if there is a filter code you can use.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    ​​​​​​

    Hello,
    Again, I do not want to turn it off, I do not want to turn off one item at a time.

    PLEASE READ THE POST… I wish to Make AUTHORS WITH NO POSTS NOT SHOW IN THE SITEMAP

    This is now about the 6th time I have messaged for this, and each time you reply with something else that can be done that is not needed.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Allow me to consult with the dev team and get back to you on this.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘Hide Authors with No Posts from Sitemap’ is closed to new replies.