{"id":18391,"date":"2013-10-18T21:01:34","date_gmt":"2013-10-18T13:01:34","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=18391"},"modified":"2025-04-04T01:37:54","modified_gmt":"2025-04-03T17:37:54","slug":"wordpress-display-authors-pagination","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/","title":{"rendered":"WordPress Tips: Displaying Author Lists with Pagination"},"content":{"rendered":"<p>In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we can display the name of the post author by using <code>the_author();<\/code> and using <code>the_title();<\/code> to display the post or page title.<\/p>\n<p>WordPress template tags are quite extensive, allowing us to fully customize our website without needing third party plugins. In this tutorial, we are going to show you <strong>how to create a custom page that display a list of users using a set of these template tags<\/strong>.<\/p>\n<p>In addition, we will also apply pagination to display those users in a number of pages. Such a page might be required for certain websites.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-conditional-tags-beginners\/\" class=\"ref-block__link\" title=\"Read More: WordPress Conditional Tags and Snippets for Beginners\" rel=\"bookmark\"><span class=\"screen-reader-text\">WordPress Conditional Tags and Snippets for Beginners<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-conditional-tags-beginners.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-13013 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-conditional-tags-beginners.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">WordPress Conditional Tags and Snippets for Beginners<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tOne of the best features of WordPress could be conditional tags. It allows you to tell the code...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>Creating Custom Page Template<\/h2>\n<p>First, create a new PHP file in your <strong>activated<\/strong> theme directory. In this example, I\u2019m using a TwentyTwelve theme. Add the following comment tag to register it as a page template.<\/p>\n<pre>\r\n&lt;?php\r\n\/*\r\nTemplate Name: User Page\r\n*\/\r\n<\/pre>\n<p>In the WordPress page editor, set it as the template for your author page.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/set-template.jpg\" alt=\"display author pagination\" width=\"500\" height=\"280\"><\/figure>\n<p>Note that you shouldn\u2019t name the file as <code>author.php<\/code> as it has been reserved by WordPress to display the author post archive.<\/p>\n<h2>The Query and Formula<\/h2>\n<p>Let\u2019s set the formula. Open the new template we have just created in a code editor.<\/p>\n<p>First, we need to specify the number of users we want to show per page. We set this number in a variable named <code>$number<\/code>. Anytime you want to change the amount of users displayed on the page, change the value in this variable.<\/p>\n<pre>\r\n$number = 10;\r\n<\/pre>\n<p>Add the following code snippet to pinpoint the current pagination number.<\/p>\n<pre>\r\n$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;\r\n<\/pre>\n<p>Then, using the following code, we count the number of users that should be passed over in the pages (offset) \u2013 this will take effect at the second page onwards.<\/p>\n<pre>\r\n$offset = ($paged - 1) * $number;\r\n<\/pre>\n<p>We need to get the registered users in our website, and count the total number using the PHP <code>count()<\/code> function, as follows.<\/p>\n<pre>\r\n$users = get_users();\r\n$total_users = count($users);\r\n<\/pre>\n<p>We also count the total number of queried user per our specifications, which include the number of users that will be displayed, and the offset number.<\/p>\n<pre>\r\n$query = get_users('&offset='.$offset.'&number='.$number);\r\n<\/pre>\n<p>Then, we count the total pages that should be created. We can count it based on the total registered users and the number of users displayed per page, as follows.<\/p>\n<pre>\r\n$total_pages = intval($total_users \/ $number) + 1;\r\n<\/pre>\n<h2>Displaying the Users<\/h2>\n<p>As we have set the required formula, now we will display the results on the page.<\/p>\n<p>In this example, we will display a few things from the user: the avatar, the full name, and the short biography (description). These information can be retrieved respectively using the following template tags: <code>get_avatar<\/code>, and <code>get_the_author_meta<\/code><\/p>\n<pre>\r\necho '&lt;ul id=\"users\"&gt;';\r\nforeach($query as $q) { ?&gt;\r\n\t\t\t\t\r\n\t&lt;li class=\"user clearfix\"&gt;\r\n\t\t&lt;div class=\"user-avatar\"&gt;\r\n\t\t\t&lt;?php echo get_avatar( $q-&gt;ID, 80 ); ?&gt;\t\r\n\t\t&lt;\/div&gt;\r\n\t\t&lt;div class=\"user-data\"&gt;\r\n\r\n\t\t\t&lt;h4 class=\"user-name\"&gt;\r\n\t\t\t\t&lt;a href=\"&lt;?php echo get_author_posts_url($q-&gt;ID);?&gt;\"&gt;\r\n\t\t\t\t\t&lt;?php echo get_the_author_meta('display_name', $q-&gt;ID);?&gt;\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/h4&gt;\r\n\r\n\t\t\t&lt;?php if (get_the_author_meta('description', $q-&gt;ID) != '') : ?&gt;\r\n\t\t\t\t&lt;p&gt;&lt;?php echo get_the_author_meta('description', $q-&gt;ID); ?&gt;&lt;\/p&gt;\r\n\t\t\t&lt;?php endif; ?&gt;\r\n\r\n\t\t&lt;\/div&gt;\r\n\t&lt;\/li&gt;\r\n\r\n&lt;?php } \r\necho '&lt;\/ul&gt;';\r\n<\/pre>\n<h2>Creating Pagination<\/h2>\n<p>Certainly we don\u2019t want to display hundreds of users in a single page. So, we are going to create the pagination link and split the results in multiple pages. In addition, we will only display the pagination if the total registered user number is greater than the users being displayed per page.<\/p>\n<p>Fortunately, WordPress has a template tag that allows us to create pagination easily, called <code>paginate_links()<\/code>.<\/p>\n<pre>\r\n&lt;?php\r\n\tif ($total_users &gt; $total_query) {\r\n\t\techo '&lt;div id=\"pagination\" class=\"clearfix\"&gt;';\r\n\t\techo '&lt;span class=\"pages\"&gt;Pages:&lt;\/span&gt;';\r\n\t\t  $current_page = max(1, get_query_var('paged'));\r\n\t\t  echo paginate_links(array(\r\n\t\t\t\t'base' =&gt; get_pagenum_link(1) . '%_%',\r\n\t\t\t\t'format' =&gt; 'page\/%#%\/',\r\n\t\t\t\t'current' =&gt; $current_page,\r\n\t\t\t\t'total' =&gt; $total_pages\r\n\t\t\t\t'prev_next'    =&gt; false,\r\n\t\t\t\t'type'         =&gt; 'list',\r\n\t\t    ));\r\n\t\techo '&lt;\/div&gt;';\r\n\t}\r\n?&gt;\r\n<\/pre>\n<h2>All the Codes<\/h2>\n<p>For a shortcut, here are all the codes that you can copy and paste into your page template.<\/p>\n<pre>\r\n&lt;?php \r\n$number \t= 10;\r\n$paged \t\t= (get_query_var('paged')) ? get_query_var('paged') : 1;\r\n$offset \t= ($paged - 1) * $number;\r\n$users \t\t= get_users();\r\n$query \t\t= get_users('&offset='.$offset.'&number='.$number);\r\n$total_users = count($users);\r\n$total_query = count($query);\r\n$total_pages = intval($total_users \/ $number) + 1;\r\n\r\necho '&lt;ul id=\"users\"&gt;';\r\n\r\nforeach($query as $q) { ?&gt;\r\n\t\r\n\t&lt;li class=\"user clearfix\"&gt;\r\n\t\t&lt;div class=\"user-avatar\"&gt;\r\n\t\t\t&lt;?php echo get_avatar( $q-&gt;ID, 80 ); ?&gt;\t\r\n\t\t&lt;\/div&gt;\r\n\t\t&lt;div class=\"user-data\"&gt;\r\n\r\n\t\t\t&lt;h4 class=\"user-name\"&gt;\r\n\t\t\t\t&lt;a href=\"&lt;?php echo get_author_posts_url($q-&gt;ID);?&gt;\"&gt;\r\n\t\t\t\t\t&lt;?php echo get_the_author_meta('display_name', $q-&gt;ID);?&gt;\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/h4&gt;\r\n\r\n\t\t\t&lt;?php if (get_the_author_meta('description', $q-&gt;ID) != '') : ?&gt;\r\n\t\t\t\t&lt;p&gt;&lt;?php echo get_the_author_meta('description', $q-&gt;ID); ?&gt;&lt;\/p&gt;\r\n\t\t\t&lt;?php endif; ?&gt;\r\n\r\n\t\t&lt;\/div&gt;\r\n\t&lt;\/li&gt;\r\n\r\n&lt;?php } \r\n\r\necho '&lt;\/ul&gt;';\r\n\r\n?&gt;\r\n\r\n&lt;?php\r\nif ($total_users &gt; $total_query) {\r\necho '&lt;div id=\"pagination\" class=\"clearfix\"&gt;';\r\necho '&lt;span class=\"pages\"&gt;Pages:&lt;\/span&gt;';\r\n  $current_page = max(1, get_query_var('paged'));\r\n  echo paginate_links(array(\r\n\t\t'base' =&gt; get_pagenum_link(1) . '%_%',\r\n\t\t'format' =&gt; 'page\/%#%\/',\r\n\t\t'current' =&gt; $current_page,\r\n\t\t'total' =&gt; $total_pages,\r\n\t\t'prev_next'    =&gt; false,\r\n\t\t'type'         =&gt; 'list',\r\n    ));\r\necho '&lt;\/div&gt;';\r\n?&gt;\r\n<\/pre>\n<p>With a few tweaks in CSS, you can make the page look much nicer.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/user-list.jpg\" alt=\"display author pagination\" width=\"600\" height=\"492\"><\/figure>\n<p>Any questions? Let us know in the comment box below.<\/p>\n<ul class=\"download download-1c\">\n<li><a target=\"_blank\" href=\"https:\/\/github.com\/hongkiat\/wordpress-display-authors-pagination\/\" rel=\"noopener\">Download Source<\/a><\/li>\n<\/ul>\n<h2>Resources:<\/h2>\n<ul>\n<li><a target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Template_Tags\" rel=\"noopener\">WordPress Template Tags<\/a> \u2013 WordPress Codex<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/developer.wordpress.org\/themes\/template-files-section\/page-template-files\/\" rel=\"noopener\">WordPress Page Template<\/a> \u2013 WordPress Codex<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Pagination\" rel=\"noopener\">WordPress Paginate Links<\/a> \u2013 WordPress Codex<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_users\/\" rel=\"noopener\">Function Reference: Get Users<\/a> \u2013 WordPress Codex<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we can display the name of the post author by using the_author(); and using the_title(); to display the post or page title. WordPress template tags are quite extensive,&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[4663,252],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>WordPress Tips: Displaying Author Lists with Pagination - Hongkiat<\/title>\n<meta name=\"description\" content=\"In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Tips: Displaying Author Lists with Pagination\" \/>\n<meta property=\"og:description\" content=\"In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2013-10-18T13:01:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T17:37:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/set-template.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"WordPress Tips: Displaying Author Lists with Pagination\",\"datePublished\":\"2013-10-18T13:01:34+00:00\",\"dateModified\":\"2025-04-03T17:37:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/\"},\"wordCount\":574,\"commentCount\":17,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-display-authors-pagination\\\/set-template.jpg\",\"keywords\":[\"ad-divi\",\"WordPress Tips\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/\",\"name\":\"WordPress Tips: Displaying Author Lists with Pagination - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-display-authors-pagination\\\/set-template.jpg\",\"datePublished\":\"2013-10-18T13:01:34+00:00\",\"dateModified\":\"2025-04-03T17:37:54+00:00\",\"description\":\"In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-display-authors-pagination\\\/set-template.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-display-authors-pagination\\\/set-template.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-display-authors-pagination\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Tips: Displaying Author Lists with Pagination\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WordPress Tips: Displaying Author Lists with Pagination - Hongkiat","description":"In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we","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:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Tips: Displaying Author Lists with Pagination","og_description":"In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we","og_url":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2013-10-18T13:01:34+00:00","article_modified_time":"2025-04-03T17:37:54+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/set-template.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"WordPress Tips: Displaying Author Lists with Pagination","datePublished":"2013-10-18T13:01:34+00:00","dateModified":"2025-04-03T17:37:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/"},"wordCount":574,"commentCount":17,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/set-template.jpg","keywords":["ad-divi","WordPress Tips"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/","url":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/","name":"WordPress Tips: Displaying Author Lists with Pagination - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/set-template.jpg","datePublished":"2013-10-18T13:01:34+00:00","dateModified":"2025-04-03T17:37:54+00:00","description":"In brief, the template tag is a simple way of querying information from the database and displaying it at the front side of your website. For example, we","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/set-template.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-display-authors-pagination\/set-template.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-display-authors-pagination\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"WordPress Tips: Displaying Author Lists with Pagination"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-4MD","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/18391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=18391"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/18391\/revisions"}],"predecessor-version":[{"id":73630,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/18391\/revisions\/73630"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=18391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=18391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=18391"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=18391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}