{"id":30128,"date":"2022-11-04T10:14:15","date_gmt":"2022-11-04T10:14:15","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/"},"modified":"2024-05-23T09:10:28","modified_gmt":"2024-05-23T09:10:28","slug":"displaying-only-users-with-posts-in-a-listing","status":"publish","type":"tips-and-tricks","link":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/","title":{"rendered":"Displaying Only Users with Posts in a Listing"},"content":{"rendered":"\n<h2 class=\"wp-block-heading item-1\" id=\"create-a-sql-query\"><strong>Create a SQL Query<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Navigate to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder<\/em><\/strong> and press the &#8220;<strong>Add New<\/strong>&#8221; button.<\/p>\n\n\n\n<p>Type the query <strong>Name<\/strong> (&#8220;users with posts (pages)&#8221; for this tutorial) and choose the &#8220;SQL\/AI Query&#8221; option from the <strong>Query Type<\/strong> drop-down list.<br>Proceed to the <strong>Custom SQL Query <\/strong>section and enable the <strong>Advanced\/AI mode<\/strong> toggle.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-1024x640.webp\" alt=\"add a SQL and AI quer\" class=\"wp-image-44434\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Enter the following query into the <strong>SQL Query<\/strong> field:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT *\nFROM (\n   SELECT\n   {prefix}users.ID,\n   display_name,\n   user_login,\n   user_nicename,\n   COUNT( {prefix}posts.ID ) AS n,\n   SUBSTRING_INDEX(display_name,' ',-1 ) AS lastname\n\n   FROM {prefix}users\n   JOIN {prefix}posts\n     ON {prefix}posts.post_author = {prefix}users.ID\n   WHERE {prefix}posts.post_type IN ( 'page', 'post' )\n   GROUP BY {prefix}posts.post_author\n   ORDER BY n DESC\n   LIMIT 10 ) AS SortedByCount\nORDER BY lastname<\/code><\/pre>\n\n\n\n<p> If needed, enable the <strong>Preview Results<\/strong> toggle on the top of the <strong>Add New Query<\/strong> tab to check the query results.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field-1024x640.webp\" alt=\"the SQL query field\" class=\"wp-image-44428\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/the-SQL-query-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">This query displays users who created the default WordPress posts and pages and sorts the users in the DESC order according to the number of posts and pages they have created. If you need to display the <strong> CPT<\/strong> post\u2032s authors, add the <strong>CPT<\/strong> post\u2032s slug to the <i>WHERE {prefix}posts.post_type IN <\/i> line. Partially, if you would like to add the \u201cProperty\u201c <strong>CPT<\/strong> with the \u201cproperty\u201c slug, this command will look as follows: <i>WHERE {prefix}posts.post_type IN ( \u2032page\u2032, \u2032post\u2032, \u2032property\u2032 ) <\/i>.<\/p><\/div><\/div>\n\n\n\n<p>Press the &#8220;<strong>Add Query<\/strong>&#8221; button to save the query or the &#8220;<strong>Update Query<\/strong>&#8221; button to update it.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-users-query\"><strong>Create a Users Query<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Navigate to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder<\/em><\/strong> and press the &#8220;<strong>Add New<\/strong>&#8221; button.<\/p>\n\n\n\n<p>Type the query <strong>Name <\/strong>(&#8220;users with posts (pages) 2&#8221; in this case), and choose the &#8220;Users Query&#8221; <strong>Query Type<\/strong>.<\/p>\n\n\n\n<p>If selected, the &#8220;Users Query&#8221; option activates the <strong>User Query<\/strong> section of the <strong>Query Builde<\/strong><strong>r<\/strong> tab.<\/p>\n\n\n\n<p>Open the <strong>Include\/Exclude<\/strong> tab and hit the macros trigger (&#8220;<strong>coin stack<\/strong>&#8221; button) next to the <strong>Include<\/strong> field. Select the &#8220;Query Results&#8221; macro from the drop-down list.<\/p>\n\n\n\n<p>Then, choose the previously built query (the &#8220;users with posts (pages)&#8221; query for this tutorial) in the <strong>Query<\/strong> drop-down list, the &#8220;List of selected fields from item object&#8221; option in the <strong>Return<\/strong> drop-down list, and the &#8220;ID&#8221; option from the <strong>Comma separated fields list<\/strong> field.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings-1024x640.webp\" alt=\"adding a macro in the users query settings\" class=\"wp-image-44433\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-macro-in-the-users-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Finally, click the &#8220;<strong>Apply<\/strong>&#8221; and &#8220;<strong>Add\/Update Query<\/strong>&#8221; buttons.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-users-listing-template\"><strong>Create Users Listing Template<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Go to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Listings<\/em><\/strong> and hit the &#8220;<strong>Add New<\/strong>&#8221; button.<\/p>\n\n\n\n<p>In the <strong>Setup Listing Item<\/strong> pop-up, select the &#8220;Users&#8221; <strong>Listing <\/strong><strong>s<\/strong><strong>ource<\/strong>, type the listing\u2019s name in the <strong>Listing item<\/strong> <strong>name<\/strong> field (in this tutorial, the \u201cListing_for_Users\u201d listing), and choose the editor in the <strong>Listing view<\/strong> drop-down list.&nbsp;<\/p>\n\n\n\n<p>In this case, we display users in Elementor, but the appropriate blocks and elements are available in Block Editor and the Bricks theme as well.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup-1024x640.webp\" alt=\"setup listing item popup\" class=\"wp-image-44429\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/setup-listing-item-popup.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>The tutorial <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-create-a-listing-template-for-users\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create a Listing Template for Users<\/a> details the main features of creating listings for users.<\/p>\n\n\n\n<p>Find and drop the <a href=\"https:\/\/crocoblock.com\/plugins\/jetengine\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a> widget to show the users&#8217; data. Here, we selected the &#8220;Post\/Term\/User\/Object Data&#8221; from the <strong>Source<\/strong> drop-down list. Then, we chose the needed option from the <strong>Object<\/strong> <strong>Field<\/strong> drop-down list (we picked the &#8220;Display Names,&#8221; &#8220;ID,&#8221; &#8220;E-mail,&#8221; and &#8220;Registration Date&#8221; options to display the appropriate user\u2019s data).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget-1024x640.webp\" alt=\"adding user data via the dynamic field widget\" class=\"wp-image-44430\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-user-data-via-the-dynamic-field-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Additionally, you can apply other widgets to display data associated with users.<\/p>\n\n\n\n<p>In this case, we added the <strong>Dynamic Field<\/strong> and <a href=\"https:\/\/crocoblock.com\/widgets\/dynamic-image\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Image<\/strong><\/a> widgets to show the user\u2019s data from the meta fields of the meta boxes added to the users.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget-1024x640.webp\" alt=\"adding meta box data via the dynamic field widget\" class=\"wp-image-44431\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-meta-box-data-via-the-dynamic-field-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Learn more about <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-apply-meta-boxes-to-users\/\" target=\"_blank\" rel=\"noreferrer noopener\">Applying Meta Boxes to User Profiles<\/a> from the tutorial.<\/p>\n\n\n\n<p>When you finish customizing the listing item, push the &#8220;<strong>Update<\/strong>&#8221; button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-the-listing-to-a-page\"><strong>Add the Listing to a Page<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Move on to the page where you want to display users with posts. In this tutorial, we display users with posts in Elementor.<\/p>\n\n\n\n<p>Drag and drop the <a href=\"https:\/\/crocoblock.com\/widgets\/listing-grid\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a> widget and select the needed listing (in this case, the created previously &#8220;Listing_for_Users&#8221; listing item) from the <strong>Listing<\/strong> drop-down list of the <strong>General<\/strong> tab.<\/p>\n\n\n\n<p>Read the tutorial <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Listing Grid Widget Overview<\/a> to know how to manage the <strong>Listing Grid<\/strong> widget\u2019s settings.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget-1024x640.webp\" alt=\"add a listing to the listing grid widget\" class=\"wp-image-44456\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-listing-to-the-listing-grid-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then, unroll the <strong>Custom Query<\/strong> tab and enable the <strong>Use Custom Query<\/strong> toggle.&nbsp;<\/p>\n\n\n\n<p>In the <strong>Custom Query<\/strong> field, select the needed option (&#8220;users with posts (pages) 2&#8221; in this case).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget-1024x640.webp\" alt=\"adding a query via the listing grid widget\" class=\"wp-image-44432\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/adding-a-query-via-the-listing-grid-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once completed, press the &#8220;<strong>Publish\/Update<\/strong>&#8221; button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-results\"><strong>Check Results<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Navigate to the front end to check if the query works correctly.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end-1024x640.webp\" alt=\"user data on the front end\" class=\"wp-image-44427\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/user-data-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That&#8217;s all. Now you know how to add listings with the active users who published posts on your WordPress website and display users&#8217; metadata via the <strong>Listing Grid<\/strong> widget\/block\/element of the <em>JetEngine <\/em>WordPress plugin.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to add listings with the active users who published posts on your WordPress website and display users&#8217; metadata with the Listing Grid widget\/block\/element of the JetEngine WordPress plugin.<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","format":"standard","tipstricks-tags":[359],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Displaying Only Users with Posts in Listing Grid \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to add listings with the active users who published osts on your WordPress website and display users&#039; metadata with the Listing Grid widget\/block\/element of the JetEngine WordPress plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Displaying Only Users with Posts in Listing Grid \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to add listings with the active users who published osts on your WordPress website and display users&#039; metadata with the Listing Grid widget\/block\/element of the JetEngine WordPress plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-23T09:10:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-1024x640.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/\",\"name\":\"Displaying Only Users with Posts in Listing Grid \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2022-11-04T10:14:15+00:00\",\"dateModified\":\"2024-05-23T09:10:28+00:00\",\"description\":\"Learn how to add listings with the active users who published osts on your WordPress website and display users' metadata with the Listing Grid widget\/block\/element of the JetEngine WordPress plugin.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips & tricks\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Displaying Only Users with Posts in a Listing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Displaying Only Users with Posts in Listing Grid \u2014 JetEngine | Crocoblock","description":"Learn how to add listings with the active users who published osts on your WordPress website and display users' metadata with the Listing Grid widget\/block\/element of the JetEngine WordPress plugin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/","og_locale":"en_US","og_type":"article","og_title":"Displaying Only Users with Posts in Listing Grid \u2014 JetEngine | Crocoblock","og_description":"Learn how to add listings with the active users who published osts on your WordPress website and display users' metadata with the Listing Grid widget\/block\/element of the JetEngine WordPress plugin.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/","og_site_name":"Help Center","article_modified_time":"2024-05-23T09:10:28+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/add-a-SQL-and-AI-query-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/","url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/","name":"Displaying Only Users with Posts in Listing Grid \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2022-11-04T10:14:15+00:00","dateModified":"2024-05-23T09:10:28+00:00","description":"Learn how to add listings with the active users who published osts on your WordPress website and display users' metadata with the Listing Grid widget\/block\/element of the JetEngine WordPress plugin.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-only-users-with-posts-in-a-listing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Tips & tricks","item":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/"},{"@type":"ListItem","position":3,"name":"Displaying Only Users with Posts in a Listing"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks\/30128"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/tips-and-tricks"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=30128"}],"wp:term":[{"taxonomy":"tipstricks-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tipstricks-tags?post=30128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}