{"id":95,"date":"2016-02-14T16:22:53","date_gmt":"2016-02-14T10:52:53","guid":{"rendered":"http:\/\/hostmayo.com\/blog\/?p=95"},"modified":"2016-02-14T16:36:38","modified_gmt":"2016-02-14T11:06:38","slug":"difference-between-wp_query-vs-query_posts-vs-get_posts","status":"publish","type":"post","link":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/","title":{"rendered":"Difference between WP_Query vs query_posts() vs get_posts()"},"content":{"rendered":"<p>This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts vs get_posts is elaborated as follow:<\/p>\n<h2>query_posts<\/h2>\n<p><a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/query_posts\"><code>query_posts()<\/code><\/a> is overly simplistic and problematic way to modify main query of a page by replacing it with new instance of the query. It is inefficient (re-runs SQL queries) and will outright fail in some circumstances (especially often when dealing with posts pagination). Any modern WP code should use more reliable methods, like making use of <a href=\"http:\/\/wordpress.stackexchange.com\/questions\/50761\/when-to-use-wp-query-query-posts-and-pre-get-posts\"><code>pre_get_posts<\/code><\/a> hook, for this purpose. TL;DR <strong>don&#8217;t use query_posts() ever<\/strong>;<\/p>\n<h2><em>get_posts<\/em><\/h2>\n<p><a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/get_posts\"><code>get_posts()<\/code><\/a> is very similar in usage and accepts same arguments (with some nuances, like different defaults), but returns array of posts, doesn&#8217;t modify global variables and is safe to use anywhere;<\/p>\n<h2>WP_Query<\/h2>\n<p><a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/WP_Query\"><code>WP_Query<\/code><\/a> class powers both behind the scenes, but you can also create and work with own object of it. Bit more complex, less restrictions, also safe to use anywhere.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-96 size-full\" src=\"http:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png\" alt=\"wordpress get_posts() query functions\" width=\"744\" height=\"1040\" srcset=\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png 744w, https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions-215x300.png 215w, https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions-733x1024.png 733w, https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions-600x839.png 600w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>The <em>get_posts<\/em> will create an array of posts based on the parameters defined. It will retrieved the list of the recent posts matching the criteria.<\/p>\n<p><em>get_posts can also be used to create multiple loops however WP_Query is preferred method for using <a title=\"The Loop\" href=\"http:\/\/codex.wordpress.org\/The_Loop#Multiple_Loops\">Multiple Loops<\/a>.\u00a0 Also\u00a0<tt>get_posts<\/tt> uses <tt>WP_Query as evident from the table above <\/tt><\/em><\/p>\n<pre>&lt;?php $args = array(\r\n\t'posts_per_page'   =&gt; 5,\r\n\t'offset'           =&gt; 0,\r\n\t'category'         =&gt; '',\r\n\t'category_name'    =&gt; '',\r\n\t'orderby'          =&gt; 'date',\r\n\t'order'            =&gt; 'DESC',\r\n\t'include'          =&gt; '',\r\n\t'exclude'          =&gt; '',\r\n\t'meta_key'         =&gt; '',\r\n\t'meta_value'       =&gt; '',\r\n\t'post_type'        =&gt; 'post',\r\n\t'post_mime_type'   =&gt; '',\r\n\t'post_parent'      =&gt; '',\r\n\t'author'\t   =&gt; '',\r\n\t'post_status'      =&gt; 'publish',\r\n\t'suppress_filters' =&gt; true \r\n);\r\n$posts_array = get_posts( $args );\u00a0?&gt;\r\n\r\nNote: <tt>'numberposts'<\/tt> and <tt>'posts_per_page'<\/tt> can be used interchangeably.<\/pre>\n<h2><span id=\"Parameters\" class=\"mw-headline\">Parameters<\/span><\/h2>\n<p><b>Note: <\/b> The category parameter needs to be the ID of the category, and not the category name.<\/p>\n<p><b>Note: <\/b> The category parameter can be a comma separated list of categories, as the <tt><a class=\"external text\" href=\"http:\/\/core.trac.wordpress.org\/browser\/tags\/3.3.1\/wp-includes\/post.php#L1369\">get_posts()<\/a><\/tt> function passes the &#8216;category&#8217; parameter directly into <tt>WP_Query<\/tt> as <tt>'cat'<\/tt>.<\/p>\n<p><b>Note: <\/b> The category_name parameter needs to be a string, in this case, the category name.<\/p>\n<p><b>Note: <\/b> The posts_per_page parameter does NOT work without setting the offset parameter.<\/p>\n<h1>Example<\/h1>\n<p>You can use the code below to show three posts using the following code.<br \/>\n<code>&lt;?php<\/p>\n<p>$args = array( 'posts_per_page' =&gt; 3, 'category' =&gt; 1 );<br \/>\n$myposts = get_posts( $args );<br \/>\nforeach ( $myposts as $post ) : setup_postdata( $post ); ?&gt;<br \/>\n&lt;a href=\"&lt;?php the_permalink(); ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;<br \/>\n&lt;?php endforeach;<br \/>\nwp_reset_postdata();<\/p>\n<p>?&gt;<br \/>\n<\/code><br \/>\nBreakup of the above code is as follow:<\/p>\n<p>We have defined a variable to store our parameters or arguments &#8220;$args&#8221;<\/p>\n<p>Then we used the get_posts function to set the parameters by passing the $args variable.<\/p>\n<p>Then using the for loop, we retrieved the posts and have shown there link and title using the the_permalink and the_title.<\/p>\n<p>Lastly we ended the loop and reset the posts data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts vs get_posts is elaborated as follow: query_posts query_posts() is overly [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":96,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Difference between WP_Query vs query_posts() vs get_posts()<\/title>\n<meta name=\"description\" content=\"This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts() vs get_posts()\u00a0 is elaborated as follow:\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Difference between WP_Query vs query_posts() vs get_posts()\" \/>\n<meta property=\"og:description\" content=\"This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts() vs get_posts()\u00a0 is elaborated as follow:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\" \/>\n<meta property=\"og:site_name\" content=\"Host Mayo\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Hostmayoservers\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-14T10:52:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-14T11:06:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png\" \/>\n\t<meta property=\"og:image:width\" content=\"744\" \/>\n\t<meta property=\"og:image:height\" content=\"1040\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Billa\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hostmayo\" \/>\n<meta name=\"twitter:site\" content=\"@hostmayo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Billa\" \/>\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:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\"},\"author\":{\"name\":\"Billa\",\"@id\":\"https:\/\/hostmayo.com\/blog\/#\/schema\/person\/a511fa95af50c3cb2614311b73c2ea9d\"},\"headline\":\"Difference between WP_Query vs query_posts() vs get_posts()\",\"datePublished\":\"2016-02-14T10:52:53+00:00\",\"dateModified\":\"2016-02-14T11:06:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\"},\"wordCount\":384,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png\",\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\",\"url\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\",\"name\":\"Difference between WP_Query vs query_posts() vs get_posts()\",\"isPartOf\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png\",\"datePublished\":\"2016-02-14T10:52:53+00:00\",\"dateModified\":\"2016-02-14T11:06:38+00:00\",\"description\":\"This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts() vs get_posts()\u00a0 is elaborated as follow:\",\"breadcrumb\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage\",\"url\":\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png\",\"contentUrl\":\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png\",\"width\":744,\"height\":1040,\"caption\":\"wordpress post query functions\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostmayo.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Difference between WP_Query vs query_posts() vs get_posts()\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostmayo.com\/blog\/#website\",\"url\":\"https:\/\/hostmayo.com\/blog\/\",\"name\":\"Host Mayo\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostmayo.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hostmayo.com\/blog\/#organization\",\"name\":\"Host Mayo\",\"url\":\"https:\/\/hostmayo.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostmayo.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2015\/12\/ico.png\",\"contentUrl\":\"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2015\/12\/ico.png\",\"width\":64,\"height\":64,\"caption\":\"Host Mayo\"},\"image\":{\"@id\":\"https:\/\/hostmayo.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Hostmayoservers\",\"https:\/\/x.com\/hostmayo\",\"https:\/\/www.linkedin.com\/company\/host-mayo\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostmayo.com\/blog\/#\/schema\/person\/a511fa95af50c3cb2614311b73c2ea9d\",\"name\":\"Billa\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostmayo.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/55380a32a6c37aba9b35b3d51dbd6cd6460322a433ecdaaacb28aece47163e51?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/55380a32a6c37aba9b35b3d51dbd6cd6460322a433ecdaaacb28aece47163e51?s=96&d=mm&r=g\",\"caption\":\"Billa\"},\"description\":\"Geek, Banker &amp; Entrepreneur.\",\"sameAs\":[\"https:\/\/hostmayo.com\/\"],\"url\":\"https:\/\/hostmayo.com\/blog\/author\/waqass\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Difference between WP_Query vs query_posts() vs get_posts()","description":"This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts() vs get_posts()\u00a0 is elaborated as follow:","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:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/","og_locale":"en_US","og_type":"article","og_title":"Difference between WP_Query vs query_posts() vs get_posts()","og_description":"This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts() vs get_posts()\u00a0 is elaborated as follow:","og_url":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/","og_site_name":"Host Mayo","article_publisher":"https:\/\/www.facebook.com\/Hostmayoservers","article_published_time":"2016-02-14T10:52:53+00:00","article_modified_time":"2016-02-14T11:06:38+00:00","og_image":[{"width":744,"height":1040,"url":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png","type":"image\/png"}],"author":"Billa","twitter_card":"summary_large_image","twitter_creator":"@hostmayo","twitter_site":"@hostmayo","twitter_misc":{"Written by":"Billa","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#article","isPartOf":{"@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/"},"author":{"name":"Billa","@id":"https:\/\/hostmayo.com\/blog\/#\/schema\/person\/a511fa95af50c3cb2614311b73c2ea9d"},"headline":"Difference between WP_Query vs query_posts() vs get_posts()","datePublished":"2016-02-14T10:52:53+00:00","dateModified":"2016-02-14T11:06:38+00:00","mainEntityOfPage":{"@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/"},"wordCount":384,"commentCount":0,"publisher":{"@id":"https:\/\/hostmayo.com\/blog\/#organization"},"image":{"@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage"},"thumbnailUrl":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png","articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/","url":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/","name":"Difference between WP_Query vs query_posts() vs get_posts()","isPartOf":{"@id":"https:\/\/hostmayo.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage"},"image":{"@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage"},"thumbnailUrl":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png","datePublished":"2016-02-14T10:52:53+00:00","dateModified":"2016-02-14T11:06:38+00:00","description":"This article is for beginners of WordPress themes. The difference between the WP_Query vs query_posts() vs get_posts()\u00a0 is elaborated as follow:","breadcrumb":{"@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#primaryimage","url":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png","contentUrl":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png","width":744,"height":1040,"caption":"wordpress post query functions"},{"@type":"BreadcrumbList","@id":"https:\/\/hostmayo.com\/blog\/difference-between-wp_query-vs-query_posts-vs-get_posts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostmayo.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Difference between WP_Query vs query_posts() vs get_posts()"}]},{"@type":"WebSite","@id":"https:\/\/hostmayo.com\/blog\/#website","url":"https:\/\/hostmayo.com\/blog\/","name":"Host Mayo","description":"","publisher":{"@id":"https:\/\/hostmayo.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostmayo.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostmayo.com\/blog\/#organization","name":"Host Mayo","url":"https:\/\/hostmayo.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostmayo.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2015\/12\/ico.png","contentUrl":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2015\/12\/ico.png","width":64,"height":64,"caption":"Host Mayo"},"image":{"@id":"https:\/\/hostmayo.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Hostmayoservers","https:\/\/x.com\/hostmayo","https:\/\/www.linkedin.com\/company\/host-mayo"]},{"@type":"Person","@id":"https:\/\/hostmayo.com\/blog\/#\/schema\/person\/a511fa95af50c3cb2614311b73c2ea9d","name":"Billa","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostmayo.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/55380a32a6c37aba9b35b3d51dbd6cd6460322a433ecdaaacb28aece47163e51?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55380a32a6c37aba9b35b3d51dbd6cd6460322a433ecdaaacb28aece47163e51?s=96&d=mm&r=g","caption":"Billa"},"description":"Geek, Banker &amp; Entrepreneur.","sameAs":["https:\/\/hostmayo.com\/"],"url":"https:\/\/hostmayo.com\/blog\/author\/waqass\/"}]}},"jetpack_featured_media_url":"https:\/\/hostmayo.com\/blog\/wp-content\/uploads\/2016\/02\/query_functions.png","_links":{"self":[{"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":0,"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/media\/96"}],"wp:attachment":[{"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostmayo.com\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}