{"id":18570152,"date":"2025-07-24T21:55:56","date_gmt":"2025-07-24T21:55:56","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/user-count-shortcode-issues\/"},"modified":"2025-07-24T22:03:52","modified_gmt":"2025-07-24T22:03:52","slug":"user-count-shortcode-issues","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/user-count-shortcode-issues\/","title":{"rendered":"User Count Shortcode Issues"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I recently happened upon an issue with my HOA membership website. As part of our registration procedures, prospective registrants are subjected to a vetting process, and if successfully vetted they are assigned the role, &#8220;residents_list&#8221;. I use the following shortcode to display the number of users who have been vetted onto our website: [wpmem_show_count role=&#8221;residents_list&#8221; label=&#8221;Registrants to date: &#8220;]. The shortcode worked properly up through version 3.5.3. However, when I updated to version 3.5.4 the shortcode now shows ALL subscribers, not just those with the role, &#8220;residents_list&#8221; &#8212; it&#8217;s apparently not processing the role request properly. When I did a rollback to version 3.5.3, the shortcode returned the proper number of <em>vetted<\/em> registrants.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m currently using version 3.5.3, but wish to update for the security releases. However, if I do so I need to hardcode the (vetted) user count each time someone successfully registers, because the shortcode incorrectly returns a count of ALL users. This is a bit of a pain.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Last week I submitted a support request to Rocketgeek, but have heard nothing. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Has anyone else observed this issue? If so, was it resolved for you?<\/p>\n","protected":false},"template":"","class_list":["post-18570152","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18570152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18570152\/revisions"}],"predecessor-version":[{"id":18570159,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18570152\/revisions\/18570159"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18570152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}