{"id":19007670,"date":"2026-08-31T15:45:32","date_gmt":"2026-08-31T15:45:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/content-restrictions-with-wordpress-com\/"},"modified":"2026-08-31T15:45:32","modified_gmt":"2026-08-31T15:45:32","slug":"content-restrictions-with-wordpress-com","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/content-restrictions-with-wordpress-com\/","title":{"rendered":"Content restrictions with WordPress.com"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi folks,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve been trying to use Members to set up restricted pages on my WordPress.com blog. It restricts the posts just fine when I select a role or two in the post&#8217;s settings, meaning that logged out users see &#8220;Sorry, but you do not have permission to view this content.&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, when I log in with a different user who has the correct permission, the post still shows the blocked comment, not the content. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same even happens when I grant <code>restrict_content<\/code> to the role, or use a different user with <code>Administrator<\/code> role.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I suspected caching, however, if I remove the role requirements from the post it will immediately load again for the user&#8230; and using a cache-busting query string didn&#8217;t change the result either.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I might have configured something wrong, but I can&#8217;t see many more levers to pull in my debugging, so thought I&#8217;d check whether you were aware of this issue when running on WordPress.com?<\/p>\n","protected":false},"template":"","class_list":["post-19007670","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19007670","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19007670\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19007670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}