{"id":244713,"date":"2025-08-16T19:56:09","date_gmt":"2025-08-16T19:56:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/current-user-posts\/"},"modified":"2026-05-24T20:10:25","modified_gmt":"2026-05-24T20:10:25","slug":"current-user-posts","status":"publish","type":"plugin","link":"https:\/\/pl.wordpress.org\/plugins\/current-user-posts\/","author":23327803,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.0","stable_tag":"0.2.0","tested":"7.0","requires":"6.7","requires_php":"7.4","requires_plugins":null,"header_name":"Current User Posts","header_author":"Sagiris Web Development","header_description":"Display the posts created by the current user.","assets_banners_color":"6f6f6e","last_updated":"2026-05-24 20:10:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/sagirisdev.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":426,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.2.0":{"tag":"0.2.0","author":"sagirisdev","date":"2026-05-24 20:10:25"}},"upgrade_notice":{"0.2.0":"<p>Bug fixes and an internal refactor. Recommended for all users.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3546571,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3546571,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3546571,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3546571,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"sagiriswd\/current-user-posts":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"sagiriswd\/current-user-posts","version":"0.2.0","title":"Current User Posts","category":"theme","icon":"admin-users","description":"Display the posts created by the current user.","allowedBlocks":["core\/query"],"attributes":{"currentUserId":{"type":"integer","default":0},"namespace":{"type":"string","default":"sagiriswd\/current-user-posts"}},"supports":{"html":false,"layout":true,"align":true,"ariaLabel":true},"keywords":["my posts","current user posts"],"textdomain":"current-user-posts","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","render":"file:.\/render.php"}},"tagged_versions":["0.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3546571,"resolution":"1","location":"assets","locale":"","width":1386,"height":921},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3546571,"resolution":"2","location":"assets","locale":"","width":1903,"height":921}},"screenshots":{"1":"A rudimentary example of the Current User Posts block against the Query Loop block.","2":"Using the block in the editor."}},"plugin_section":[],"plugin_tags":[1220,40693,1919,1626,217318],"plugin_category":[58],"plugin_contributors":[246397],"plugin_business_model":[],"class_list":["post-244713","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-current-user","plugin_tags-members","plugin_tags-query","plugin_tags-user-posts","plugin_category-user-management","plugin_contributors-sagirisdev","plugin_committers-sagirisdev"],"banners":{"banner":"https:\/\/ps.w.org\/current-user-posts\/assets\/banner-772x250.png?rev=3546571","banner_2x":"https:\/\/ps.w.org\/current-user-posts\/assets\/banner-1544x500.png?rev=3546571","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/current-user-posts\/assets\/icon-128x128.png?rev=3546571","icon_2x":"https:\/\/ps.w.org\/current-user-posts\/assets\/icon-256x256.png?rev=3546571","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/current-user-posts\/assets\/screenshot-1.png?rev=3546571","caption":"A rudimentary example of the Current User Posts block against the Query Loop block."},{"src":"https:\/\/ps.w.org\/current-user-posts\/assets\/screenshot-2.png?rev=3546571","caption":"Using the block in the editor."}],"raw_content":"<!--section=description-->\n<p>Current User Posts lets you display posts created by the logged in user automatically in a block theme.<\/p>\n\n<p>This block is essential for creating member's only areas on your website. Displaying the posts of the current user dynamically is an industry-standard feature of online membership systems, and Current User Posts brings that to the Block Editor.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>A valid user id is required for this block to work, so it must be placed in a context that is only available to logged in users.<\/p>\n\n<p>Only logged in users should be able to see the block.<\/p>\n\n<h3>Donate<\/h3>\n\n<p>https:\/\/sagirisdev.com\/donate<\/p>\n\n<!--section=installation-->\n<ul>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/current-user-posts<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id=\"i%20see%20my%20posts%20show%20up%20in%20the%20block%20editor%20instead%20of%20the%20user%27s.\"><h3>I see my posts show up in the block editor instead of the user's.<\/h3><\/dt>\n<dd><p>That means the block is working. Since you are the current user when working in the block editor, your posts will be displayed in the block. When another user logs in and views the block, they will see posts they created.<\/p><\/dd>\n<dt id=\"can%20i%20add%2C%20remove%2C%20or%20rearrange%20the%20inner%20blocks%3F\"><h3>Can I add, remove, or rearrange the inner blocks?<\/h3><\/dt>\n<dd><p>The block supports ONLY one instance of the Query Loop block inside of it. However, you can change the blocks inside of the inner Query Loop block.<\/p><\/dd>\n<dt id=\"i%27ve%20inserted%20the%20block%20onto%20my%20page%2C%20but%20i%27m%20not%20seeing%20my%20posts.\"><h3>I've inserted the block onto my page, but I'm not seeing my posts.<\/h3><\/dt>\n<dd><p>Make sure you have posts of the selected post type to display. If your selected pattern doesn't contain a no-results block, you will not see a message alerting you that there aren't any posts of that post type to display.<\/p><\/dd>\n<dt id=\"the%20block%20says%20i%20need%20to%20log%20in%20to%20see%20my%20posts.\"><h3>The block says I need to log in to see my posts.<\/h3><\/dt>\n<dd><p>This block is only meant to be seen by registered users of the website, i.e. they must be a WordPress user with a valid user account. Any visitor to the website who isn't logged in to an account will not be able to see posts in the block. The block should only be visible to users after they have logged in.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Fix: block now returns complete markup when no user is logged in (previously left an unclosed <code>&lt;div&gt;<\/code>).<\/li>\n<li>Fix: PHP parse error caused by Unicode smart quotes in the main plugin file.<\/li>\n<li>Fix: editor warning caused by React hooks being called conditionally in the query filter.<\/li>\n<li>Fix: <code>setAttributes<\/code> is no longer called during render; the author sync now runs inside an effect.<\/li>\n<li>Fix: the inner Query Loop's <code>inherit<\/code> default is now <code>false<\/code> everywhere, so the author filter is never bypassed by archive context.<\/li>\n<li>Fix: namespace resolution error for <code>WP_Block<\/code> in the render path.<\/li>\n<li>Improvement: refactored into separate Plugin, Block_Registrar, and Block_Renderer classes.<\/li>\n<li>Improvement: uses the optimised block registration APIs on WordPress 6.7+ and 6.8+, with a fallback loop for earlier versions.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display posts created by the currently logged-in user using a Query Loop variation, scoped automatically to the viewer.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/244713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=244713"}],"author":[{"embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sagirisdev"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=244713"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=244713"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=244713"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=244713"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=244713"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=244713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}