{"id":18954,"date":"2014-01-02T15:01:36","date_gmt":"2014-01-02T07:01:36","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=18954"},"modified":"2025-04-04T01:39:47","modified_gmt":"2025-04-03T17:39:47","slug":"wordpress-query-basic","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/","title":{"rendered":"How to Customize Your WordPress Query"},"content":{"rendered":"<p>Today, we\u2019re going to explore the <strong>WordPress Query<\/strong>. Although the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Class_Reference\/WP_Query\">official WordPress documentation for Query<\/a> exists, it can be quite overwhelming and not exactly straightforward to sift through every detail. Consider this your handy shortcut.<\/p>\n<p>In this post, we\u2019ll share several practical <strong>tips for using WordPress Query<\/strong> effectively, which you may find useful for enhancing your theme.<\/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-search-plugin-snippet\/\" class=\"ref-block__link\" title=\"Read More: Essential WordPress Plugins and Snippets to Improve Search Functionality\" rel=\"bookmark\"><span class=\"screen-reader-text\">Essential WordPress Plugins and Snippets to Improve Search Functionality<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-search-plugin-snippet.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-9674 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-search-plugin-snippet.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">Essential WordPress Plugins and Snippets to Improve Search Functionality<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tEditor's note: For a newer, updated version of this post, check it out here. WordPress is a powerful...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>Understanding WP_Query Basics<\/h2>\n<p>In essence, <code>WP_Query<\/code> is a class designed for retrieving WordPress posts and pages. By integrating a new <code>WP_Query<\/code> class within a WordPress theme, we can custom-tailor queries for posts (or pages) according to specific requirements.<\/p>\n<p>Firstly, take a moment to open the <code>index.php<\/code> file in your theme\u2019s directory; there, you should encounter the snippet below.<\/p>\n<pre>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;\r\n &lt;?php endwhile; else: ?&gt;\r\n &lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.'); ?&gt;&lt;\/p&gt;\r\n &lt;?php endif; ?&gt; \r\n<\/pre>\n<p>This is referred to as <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/The_Loop\">The Loop<\/a>, and its role is to automatically display all published posts.<\/p>\n<p>Now, let\u2019s examine how to tailor this with <code>WP_Query<\/code>. We\u2019ll illustrate by excluding posts from certain categories.<\/p>\n<p>To begin, we initialize a new <code>WP_Query<\/code> and store it in a variable.<\/p>\n<pre>\r\n$my_query = new WP_Query();\r\n<\/pre>\n<p>We then specify the category IDs to exclude, as in the following example:<\/p>\n<pre>\r\n$my_query = new WP_Query('cat=-1,-5'); \/\/ Exclude categories 1 and 5\r\n<\/pre>\n<p>Subsequently, we utilize this variable within The Loop like so.<\/p>\n<pre>\r\n&lt;?php if ( $my_custom_query-&gt;have_posts() ) : while ( $my_custom_query-&gt;have_posts() ) : $my_custom_query-&gt;the_post(); ?&gt;\r\n&lt;div class=\"title\"&gt;\r\n&lt;a href=\"&lt;?php the_permalink() ;?&gt;\"&gt;&lt;?php the_title() ;?&gt;&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n&lt;?php endwhile; else: ?&gt;\r\n&lt;p&gt;\r\n&lt;?php _e('Sorry, no posts matched your criteria.'); ?&gt;\r\n&lt;\/p&gt;\r\n&lt;?php endif; ?&gt;\r\n<\/pre>\n<p>Remember, if you\u2019re handling multiple custom queries, especially on a single page, it\u2019s crucial to wrap up with <code>wp_reset_postdata()<\/code> to reset the global post object.<\/p>\n<h2>Integrating WP-PageNavi with Custom Queries<\/h2>\n<p>The <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/wordpress.org\/\/plugins\/wp-pagenavi\/\">WP-PageNavi plugin<\/a> is a widely used tool for adding numbered pagination to WordPress sites. However, many users experience issues when attempting to use it with custom <code>WP_Query<\/code>, often finding that the pagination <strong>fails to function<\/strong>.<\/p>\n<p>Since its 2.74 version release, WP-PageNavi has included an option to accommodate custom queries. By using our previous custom query as an example, the following adjustment can rectify the pagination issue:<\/p>\n<pre>\r\nwp_pagenavi( array( 'query' => $my_query ) );\r\n<\/pre>\n<p>This modification effectively addresses the error.<\/p>\n<h2>Optimizing Performance with Query Caching<\/h2>\n<p>Handling multiple queries, especially on a single webpage, can significantly increase server loads and potentially slow down your <a href=\"https:\/\/www.hongkiat.com\/blog\/website-speed-and-performance-check-tools\/\">website\u2019s performance<\/a>. Utilizing the Transient API for caching can notably enhance efficiency in this scenario.<\/p>\n<p>This approach involves caching the results of a <code>WP_Query<\/code> for a predetermined period, thereby accelerating the loading process by serving cached data instead of generating a new query with each page load.<\/p>\n<p>Below is an example of how to cache a query result for 24 hours:<\/p>\n<pre>\r\nif ( ! ( $my_query = get_transient( 'my_query_cache' ) ) ) {\r\n$my_query = new WP_Query('cat=-1,-5');\r\nset_transient( 'my_query_cache', $my_query, DAY_IN_SECONDS );\r\n}\r\n<\/pre>\n<h2>Conclusion<\/h2>\n<p>Whether you\u2019re crafting simple or intricate queries, <code>WP_Query<\/code> empowers you to do both. For those who find the process of creating a custom <code>WP_Query<\/code> daunting, the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/generatewp.com\/wp_query\/\">WP_Query Generator<\/a> tool is a fantastic resource to simplify the task.<\/p>\n<p>I hope this guide proves helpful. For more in-depth exploration of this subject, here are some valuable resources:<\/p>\n<ul>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/The_Loop\">WordPress Loop<\/a> \u2014 WordPress Codex<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Class_Reference\/WP_Query\">WordPress Query<\/a> \u2014 WordPress Codex<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/digwp.com\/2011\/05\/loops\/\">4 Ways to Loop with WordPress<\/a> \u2014 DigWP<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.smashingmagazine.com\/2012\/06\/diy-caching-methods-wordpress\/\">Do-It-Yourself Caching Methods With WordPress<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Today, we\u2019re going to explore the WordPress Query. Although the official WordPress documentation for Query exists, it can be quite overwhelming and not exactly straightforward to sift through every detail. Consider this your handy shortcut. In this post, we\u2019ll share several practical tips for using WordPress Query effectively, which you may find useful for enhancing&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],"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.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Creating Custom WordPress Query<\/title>\n<meta name=\"description\" content=\"Today, we&#039;re going to explore the WordPress Query. Although the official WordPress documentation for Query exists, it can be quite overwhelming and not\" \/>\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-query-basic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Customize Your WordPress Query\" \/>\n<meta property=\"og:description\" content=\"Today, we&#039;re going to explore the WordPress Query. Although the official WordPress documentation for Query exists, it can be quite overwhelming and not\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/\" \/>\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=\"2014-01-02T07:01:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T17:39:47+00:00\" \/>\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=\"2 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-query-basic\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"How to Customize Your WordPress Query\",\"datePublished\":\"2014-01-02T07:01:36+00:00\",\"dateModified\":\"2025-04-03T17:39:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/\"},\"wordCount\":460,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"ad-divi\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/\",\"name\":\"Creating Custom WordPress Query\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2014-01-02T07:01:36+00:00\",\"dateModified\":\"2025-04-03T17:39:47+00:00\",\"description\":\"Today, we're going to explore the WordPress Query. Although the official WordPress documentation for Query exists, it can be quite overwhelming and not\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-query-basic\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Customize Your WordPress Query\"}]},{\"@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":"Creating Custom WordPress Query","description":"Today, we're going to explore the WordPress Query. Although the official WordPress documentation for Query exists, it can be quite overwhelming and not","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-query-basic\/","og_locale":"en_US","og_type":"article","og_title":"How to Customize Your WordPress Query","og_description":"Today, we're going to explore the WordPress Query. Although the official WordPress documentation for Query exists, it can be quite overwhelming and not","og_url":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-01-02T07:01:36+00:00","article_modified_time":"2025-04-03T17:39:47+00:00","author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"How to Customize Your WordPress Query","datePublished":"2014-01-02T07:01:36+00:00","dateModified":"2025-04-03T17:39:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/"},"wordCount":460,"commentCount":5,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["ad-divi"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/","url":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/","name":"Creating Custom WordPress Query","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2014-01-02T07:01:36+00:00","dateModified":"2025-04-03T17:39:47+00:00","description":"Today, we're going to explore the WordPress Query. Although the official WordPress documentation for Query exists, it can be quite overwhelming and not","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-query-basic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Customize Your WordPress Query"}]},{"@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-4VI","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/18954","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=18954"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/18954\/revisions"}],"predecessor-version":[{"id":73645,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/18954\/revisions\/73645"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=18954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=18954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=18954"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=18954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}