• Resolved brianol

    (@brianol)


    Hi,
    I am using Ultimate Member user management, and I want to enable the user archive so I can show the membership.

    The author archive xml file was there, and then when I toggled some settings (like turning ON “show users with no posts”) the xml disappeared. THis is because I tagged the two admin accounts with “hide from search” in the user editor.

    I have a specific role I’m using for the directory… “Sport Organization” and it doesn’t seem to pick up in the user archive, even though it seems the only way to get UM directories to show up in sitemaps is this method.

    Is there a functions.php filter i can use?

    **no caching plugin currently enabled

    • This topic was modified 3 years ago by brianol.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brianol

    Could you please tell us where do you find the option “show users with no posts”? I tried enabling the Yoast SEO plugin and it shows the authors sitemap: https://drive.google.com/file/d/12cyIfaG156-89XaHHv1jb7KEC-rGpUzN/view?usp=sharing

    Is your site accessible to everyone? Please go to WP Admin > Ultimate Member > Settings > Access.

    Regards,

    Thread Starter brianol

    (@brianol)

    Thanks @champsupertramp
    see attached screenies:

    https://drive.google.com/file/d/1j27w8chdFU_oU-obGuaIRSbCF0fqmFyF/view?usp=sharing
    Yoast archive settings with “Show archives for authors without posts in search results?” toggled to ON

    https://drive.google.com/file/d/1I2YYbcqru__ZvPCIM93MuLccUhP5umxe/view?usp=sharing
    UM settings showing the site is visible to everyone.

    https://drive.google.com/file/d/1zxfZ2kwcHb0OG3dE4tPps5DyroXi2gVd/view?usp=sharing
    ADMIN user settings removing them from the sitemap

    So in theory, My user sitemap should have just ultimate member users.

    If I uncheck the “Do not allow search engines to show this author’s archives in search results.” from the admin accounts, they indeed will show up, but I don’t want that. What I want is the directory users to appear.

    Thank you

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brianol

    Your screenshots are not publicly accessible. Please check.

    Regards,

    Thread Starter brianol

    (@brianol)

    They should be public now

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brianol

    Where is this option located?
    https://drive.google.com/file/d/1zxfZ2kwcHb0OG3dE4tPps5DyroXi2gVd/view

    If I uncheck the “Do not allow search engines to show this author’s archives in search results.” from the admin accounts, they indeed will show up, but I don’t want that. What I want is the directory users to appear.

    Did you mean you want to show the Member Directory page instead of the author archive in the sitemap?

    Regards,

    Thread Starter brianol

    (@brianol)

    Hi Thanks,
    “Do not allow search engines to show this author’s archives in search results.” is located in the User Editor.

    I am checking this on the ADMIN users to exclude them from any lists or sitemaps.

    What I think is the real issue at heart is that the Ultimate Member user roles aren’t showing up in the sitemap.xml author archives.

    THe member directory shows in the sitemap, but the list of users does not show (in the author sitemap).

    What I really want to do is make sure the actual listings in the directory are getting properly indexed. Having them show in the author sitemap is logical, as they are in the user database.

    Aside from this, I am unhappy that the general site search does not seem to pick up Ultimate member info.

    But for now, What I am trying to ensure is best-case SEO indexing.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brianol

    If you want to show the user profiles URLs in the author sitemap, you can try this basic extension: https://github.com/ultimatemember/Extended/tree/main/um-yoast-seo

    The installation guide is in this link: https://github.com/ultimatemember/Extended#installation

    Regards,

    Thread Starter brianol

    (@brianol)

    Hi @champsupertramp
    OK, this is all working now. Thank you.

    It wasn’t, even after installing the plugin, but once I un-ticked the “Do not allow search engines to show this author’s archives in search results.” in the main wordpress user editor for one single user, it all popped into place.

    Sadly, though, I don’t want those users indexed (the admin users) but now they are showing by default. haha. You can’t win.

    With this plugin, it would be great if it respected the “Do not allow search engines to show this author’s archives in search results.” but still produced the sitemap.

    But I am most grateful. I believe my problem is solved at the moment!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brianol

    I’ve updated the Yoast extension:
    https://github.com/ultimatemember/Extended

    It hides the user from the author’s archive when this option is enabled Do not allow search engines to show this author’s archives in search results.

    I also added a filter hook so you can modify the users to display in the author’s archive. You can try the following code snippet to show only users with subscribers role in the sitemap.

    add_filter("um_yoast_seo_get_users","um_112421_yoast_user_roles");
    function um_112421_yoast_user_roles( $args ){
       $args['role__in'] = array( "Subscriber" );
       return $args;
    }

    Regards,

    Thread Starter brianol

    (@brianol)

    That works excellently.

    The hook doesn’t quite work, but the edit to the plugin does.

    It’s weird. In my case, I have 3 site users, 2 admins, and 1 editor and then a series of “Sport Organizations” in ultimate member as a custom role.

    If I tick “Do not allow search engines to show this author’s archives in search results” in the 1 editor, on both admin users, the author sitemap breaks and throws a 404. I need to leave one exposed, the editor in my case.

    I believe something here is at play with the fact that the UM users have 0 posts attributed to them (by wordpress User panel)

    But at least now, my admin users are not public!

    Thank you!

    • This reply was modified 3 years ago by brianol.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brianol

    Have you tried changing the role name Subscriber to slug subscriber?

    add_filter("um_yoast_seo_get_users","um_112421_yoast_user_roles");
    function um_112421_yoast_user_roles( $args ){
       $args['role__in'] = array( "subscriber" );
       return $args;
    }

    Regards,

    Thread Starter brianol

    (@brianol)

    Hi @champsupertramp
    In my case, the UM role is “Sport Organization” and the slug is “um_sport-organization”

    Using wither of those, the filter does nothing.

    And in the end, I am going to have two… “Facility” / “um_facility”

    • This reply was modified 3 years ago by brianol.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brianol

    It works on my end. Please see my test in the video clip:
    https://drive.google.com/file/d/15C0z_u8O6PedmIf-gwa894Hf12eVpEYM/view?usp=sharing

    Regards,

    Thread Starter brianol

    (@brianol)

    hmmm I may try again then, though I do have it working. The filter 100% works in theory.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Author Sitemap enabled, Not showing’ is closed to new replies.