{"id":12857,"date":"2019-06-07T10:00:58","date_gmt":"2019-06-07T10:00:58","guid":{"rendered":"https:\/\/www.planetwebsolution.com\/blog\/?p=12857"},"modified":"2019-09-18T05:58:58","modified_gmt":"2019-09-18T05:58:58","slug":"how-to-implement-sort-by-most-viewed-products-in-magento-2","status":"publish","type":"post","link":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/","title":{"rendered":"How to implement sort by &#8220;Most viewed&#8221; products in Magento 2?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12864\" src=\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products-in-magento-2-950-500.jpg\" alt=\"How to Implement sort by most viewed products in magento 2\" width=\"950\" height=\"500\" srcset=\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products-in-magento-2-950-500.jpg 950w, https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products-in-magento-2-950-500-300x158.jpg 300w, https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products-in-magento-2-950-500-768x404.jpg 768w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>Almost every eCommerce store is filled with thousands of products. If an eCommerce store is not facilitating its customers to navigate and sort the products as per their requirement, there would be a drastic impact on its conversion rates.<\/p>\n<p>Therefore to provide better customer experience, it is must to use sorting extensions in your Magento 2 e-commerce website. The product catalog can be sorted based upon the following options:<\/p>\n<ul>\n<li>Most Viewed<\/li>\n<li>What\u2019s New (Latest Products Added)<\/li>\n<li>Discount<\/li>\n<li><a href=\"https:\/\/dev.to\/planetwebsol\/how-to-implement-sort-by-best-seller-products-in-magento-2-4cp8\" target=\"_blank\" rel=\"nofollow noopener\">Sort by Bestseller<\/a><\/li>\n<li>Price: Low to High<\/li>\n<li>Price: High to Low<\/li>\n<li>Faster delivery, etc.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>The <a href=\"https:\/\/www.planetwebsolution.com\/magento-development-services\"><strong>Magento 2 Development Services <\/strong><\/a>allow the developer\/ Admin to select multiple sort options from the backend.<\/p>\n<h2><strong>Guide to implement sort by \u201cMost Viewed\u201d products in Magento 2<\/strong><\/h2>\n<p><strong>Step 1: <\/strong>First, we need to create two plugins. Before creating the plugins, we first need to declare the plugin in the di.xml file of the module.<\/p>\n<p>[Vendor]\/[ModuleName]\/etc\/frontend\/di.xml<\/p>\n<blockquote><p>&lt;config xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221; xsi:noNamespaceSchemaLocation=&#8221;urn:magento:framework:ObjectManager\/etc\/config.xsd&#8221;&gt;<\/p>\n<p>&lt;type name=&#8221;Magento\\Catalog\\Model\\Config&#8221;&gt;<\/p>\n<p>&lt;plugin name=&#8221;sortby_add_custom_option&#8221; type=&#8221;[Vendor]\\[ModuleName]\\Plugin\\Model\\Config&#8221; \/&gt;<\/p>\n<p>&lt;\/type&gt;<\/p>\n<p>&lt;type name=&#8221;Magento\\Catalog\\Block\\Product\\ProductList\\Toolbar&#8221;&gt;<\/p>\n<p>&lt;plugin name=&#8221;sortby_extend_default_sort_filters&#8221; type=&#8221;[Vendor]\\[ModuleName]\\Plugin\\Block\\Toolbar&#8221; \/&gt;<\/p>\n<p>&lt;\/type&gt;<\/p>\n<p>&lt;\/config&gt;<\/p><\/blockquote>\n<p><strong>Step 2: <\/strong>Create the first plugin<\/p>\n<p>[Vendor]\\[ModuleName]\\Plugin\\Model\\Config.php<\/p>\n<blockquote><p>&lt;?phpnamespace [Vendor]\\[ModuleName]\\Plugin\\Model;<\/p>\n<p>class Config<\/p>\n<p>{<\/p>\n<p>\/**<\/p>\n<p>* Add custom Sort By option<\/p>\n<p>*<\/p>\n<p>* @param \\Magento\\Catalog\\Model\\Config $catalogConfig<\/p>\n<p>* @param array $options<\/p>\n<p>* @return array []<\/p>\n<p>* @SuppressWarnings(PHPMD.UnusedFormalParameter)<\/p>\n<p>*\/<\/p>\n<p>public function afterGetAttributeUsedForSortByArray(\\Magento\\Catalog\\Model\\Config $catalogConfig, $options)<\/p>\n<p>{<\/p>\n<p>\/\/ new sorting option<\/p>\n<p>$customOption[&#8216;most_viewed&#8217;] = __(&#8216;Most Viewed&#8217;);<\/p>\n<p>\/\/ merge default sorting options with custom options<\/p>\n<p>$options = array_merge($customOption, $options);<\/p>\n<p>return $options;<\/p>\n<p>}<\/p>\n<p>\/**\u00a0\u00a0\u00a0\u00a0 * This method is optional. Use it to set Most Viewed as the default<\/p>\n<p>* sorting option in the category view page<\/p>\n<p>*<\/p>\n<p>* @param \\Magento\\Catalog\\Model\\Config $catalogConfig<\/p>\n<p>* @return string<\/p>\n<p>* @SuppressWarnings(PHPMD.UnusedFormalParameter)<\/p>\n<p>*\/<\/p>\n<p>public function afterGetProductListDefaultSortBy(\\Magento\\Catalog\\Model\\Config $catalogConfig)\u00a0\u00a0\u00a0 {<\/p>\n<p>return &#8216;most_viewed&#8217;;<\/p>\n<p>}<\/p>\n<p>}<\/p><\/blockquote>\n<p><strong>Also Read:\u00a0<\/strong><a href=\"https:\/\/www.planetwebsolution.com\/blog\/how-to-migrate-from-magento-2-2-to-magento-2-3\/\">How To Migrate From Magento 2.2 To Magento 2.3<\/a><\/p>\n<p><strong>Step 3: <\/strong>Create the second plugin<\/p>\n<p>[Vendor]\\[ModuleName]\\Plugin\\Block\\Toolbar.php<\/p>\n<blockquote><p>&lt;?phpnamespace [Vendor]\\[ModuleName]\\Plugin\\Block;<\/p>\n<p>use Magento\\Framework\\App\\ResourceConnection;<\/p>\n<p>use Magento\\Framework\\DB\\Select;<\/p>\n<p>\/**<\/p>\n<p>* Product list toolbar plugin<\/p>\n<p>*\/<\/p>\n<p>class Toolbar<\/p>\n<p>{<\/p>\n<p>const SORT_ORDER_DESC = &#8216;DESC&#8217;;<\/p>\n<p>\/**<\/p>\n<p>* @var \\Magento\\Framework\\Model\\ResourceModel\\Db\\Collection\\AbstractCollection<\/p>\n<p>*\/<\/p>\n<p>protected $_collection = null;<\/p>\n<p>\/**<\/p>\n<p>* DB connection<\/p>\n<p>*<\/p>\n<p>* @var \\Magento\\Framework\\DB\\Adapter\\AdapterInterface<\/p>\n<p>*\/<\/p>\n<p>protected $_conn;<\/p>\n<p>\/**<\/p>\n<p>* @var boolean<\/p>\n<p>*\/<\/p>\n<p>protected $_subQueryApplied = false;<\/p>\n<p>\/**<\/p>\n<p>* Constructor<\/p>\n<p>*<\/p>\n<p>* @param \\Magento\\Framework\\App\\ResourceConnection $resource<\/p>\n<p>*\/<\/p>\n<p>public function __construct(ResourceConnection $resource)<\/p>\n<p>{<\/p>\n<p>$this-&gt;_conn = $resource-&gt;getConnection(&#8216;catalog&#8217;);<\/p>\n<p>}<\/p>\n<p>\/**<\/p>\n<p>* Plugin &#8211; Used to modify default Sort By filters<\/p>\n<p>*<\/p>\n<p>* @param \\Magento\\Catalog\\Block\\Product\\ProductList\\Toolbar $subject<\/p>\n<p>* @param null $result<\/p>\n<p>* @param \\Magento\\Framework\\Data\\Collection $collection<\/p>\n<p>* @return Toolbar<\/p>\n<p>* @SuppressWarnings(PHPMD.UnusedFormalParameter)<\/p>\n<p>*\/<\/p>\n<p>public function afterSetCollection(\\Magento\\Catalog\\Block\\Product\\ProductList\\Toolbar $subject,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $result,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $collection<\/p>\n<p>) {<\/p>\n<p>$this-&gt;_collection = $collection;<\/p>\n<p>if ($subject-&gt;getCurrentOrder() == &#8216;most_viewed&#8217;) {<\/p>\n<p>if (!$this-&gt;_subQueryApplied) {<\/p>\n<p>$reportEventTable = $this-&gt;_collection-&gt;getResource()-&gt;getTable(&#8216;report_event&#8217;);<\/p>\n<p>$subSelect = $this-&gt;_conn-&gt;select()-&gt;from(<\/p>\n<p>[&#8216;report_event_table&#8217; =&gt; $reportEventTable],<\/p>\n<p>&#8216;COUNT(report_event_table.event_id)&#8217;<\/p>\n<p>)-&gt;where(<\/p>\n<p>&#8216;report_event_table.object_id = e.entity_id&#8217;<\/p>\n<p>);<\/p>\n<p>$this-&gt;_collection-&gt;getSelect()-&gt;reset(Select::ORDER)-&gt;columns(<\/p>\n<p>[&#8216;views&#8217; =&gt; $subSelect]<\/p>\n<p>)-&gt;order(<\/p>\n<p>&#8216;views &#8216;\u00a0 . self::SORT_ORDER_DESC<\/p>\n<p>);<\/p>\n<p>$this-&gt;_subQueryApplied = true;<\/p>\n<p>}<\/p>\n<p>}\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return $this;<\/p>\n<p>}<\/p>\n<p>}<\/p><\/blockquote>\n<h2><strong>Want to have sort by \u201cMost Viewed\u201d feature in your store?<\/strong><\/h2>\n<p><em>If your e-commerce store is deprived from sort by \u201cMost Viewed\u201d products or other features, talk to our expert team of <a href=\"https:\/\/www.planetwebsolution.com\/hire-developer\"><strong>Magento 2 Developers<\/strong><\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Almost every eCommerce store is filled with thousands of products. If an eCommerce store is not facilitating its customers to navigate and sort the products as per their requirement, there would be a drastic impact on its conversion rates. Therefore to provide better customer experience, it is must to use sorting extensions in your Magento &hellip; <a href=\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to implement sort by &#8220;Most viewed&#8221; products in Magento 2?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":12865,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[134,132,192,126],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to implement sort by &quot;Most viewed&quot; products in Magento 2?<\/title>\n<meta name=\"description\" content=\"The sort by &quot;Most Viewed&#039; feature is very important for every e-commerce website.This article will explain you the process to implement &quot;Most Viewed&quot; feature extension to your web store.\" \/>\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.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to implement sort by &quot;Most viewed&quot; products in Magento 2?\" \/>\n<meta property=\"og:description\" content=\"The sort by &quot;Most Viewed&#039; feature is very important for every e-commerce website.This article will explain you the process to implement &quot;Most Viewed&quot; feature extension to your web store.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Our Blog - Web and Mobile App Development Company India - PWS\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-07T10:00:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-18T05:58:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"850\" \/>\n\t<meta property=\"og:image:height\" content=\"780\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nilesh Kothari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nilesh Kothari\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/\",\"url\":\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/\",\"name\":\"How to implement sort by \\\"Most viewed\\\" products in Magento 2?\",\"isPartOf\":{\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg\",\"datePublished\":\"2019-06-07T10:00:58+00:00\",\"dateModified\":\"2019-09-18T05:58:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/#\/schema\/person\/6bfdc7c1bc2573074ded56315b4d7fca\"},\"description\":\"The sort by \\\"Most Viewed' feature is very important for every e-commerce website.This article will explain you the process to implement \\\"Most Viewed\\\" feature extension to your web store.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg\",\"contentUrl\":\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg\",\"width\":850,\"height\":780,\"caption\":\"Magento 2 Development Services\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.planetwebsolution.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to implement sort by &#8220;Most viewed&#8221; products in Magento 2?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/#website\",\"url\":\"https:\/\/www.planetwebsolution.com\/blog\/\",\"name\":\"Our Blog - Web and Mobile App Development Company India - PWS\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.planetwebsolution.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/#\/schema\/person\/6bfdc7c1bc2573074ded56315b4d7fca\",\"name\":\"Nilesh Kothari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.planetwebsolution.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2018\/01\/blog-writter.png\",\"contentUrl\":\"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2018\/01\/blog-writter.png\",\"caption\":\"Nilesh Kothari\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to implement sort by \"Most viewed\" products in Magento 2?","description":"The sort by \"Most Viewed' feature is very important for every e-commerce website.This article will explain you the process to implement \"Most Viewed\" feature extension to your web store.","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.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"How to implement sort by \"Most viewed\" products in Magento 2?","og_description":"The sort by \"Most Viewed' feature is very important for every e-commerce website.This article will explain you the process to implement \"Most Viewed\" feature extension to your web store.","og_url":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/","og_site_name":"Our Blog - Web and Mobile App Development Company India - PWS","article_published_time":"2019-06-07T10:00:58+00:00","article_modified_time":"2019-09-18T05:58:58+00:00","og_image":[{"width":850,"height":780,"url":"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg","type":"image\/jpeg"}],"author":"Nilesh Kothari","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nilesh Kothari","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/","url":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/","name":"How to implement sort by \"Most viewed\" products in Magento 2?","isPartOf":{"@id":"https:\/\/www.planetwebsolution.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg","datePublished":"2019-06-07T10:00:58+00:00","dateModified":"2019-09-18T05:58:58+00:00","author":{"@id":"https:\/\/www.planetwebsolution.com\/blog\/#\/schema\/person\/6bfdc7c1bc2573074ded56315b4d7fca"},"description":"The sort by \"Most Viewed' feature is very important for every e-commerce website.This article will explain you the process to implement \"Most Viewed\" feature extension to your web store.","breadcrumb":{"@id":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#primaryimage","url":"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg","contentUrl":"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2019\/06\/How-to-Implement-sort-by-most-viewed-products.jpg","width":850,"height":780,"caption":"Magento 2 Development Services"},{"@type":"BreadcrumbList","@id":"https:\/\/www.planetwebsolution.com\/blog\/how-to-implement-sort-by-most-viewed-products-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.planetwebsolution.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to implement sort by &#8220;Most viewed&#8221; products in Magento 2?"}]},{"@type":"WebSite","@id":"https:\/\/www.planetwebsolution.com\/blog\/#website","url":"https:\/\/www.planetwebsolution.com\/blog\/","name":"Our Blog - Web and Mobile App Development Company India - PWS","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.planetwebsolution.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.planetwebsolution.com\/blog\/#\/schema\/person\/6bfdc7c1bc2573074ded56315b4d7fca","name":"Nilesh Kothari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.planetwebsolution.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2018\/01\/blog-writter.png","contentUrl":"https:\/\/www.planetwebsolution.com\/blog\/wp-content\/uploads\/2018\/01\/blog-writter.png","caption":"Nilesh Kothari"}}]}},"_links":{"self":[{"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/posts\/12857"}],"collection":[{"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/comments?post=12857"}],"version-history":[{"count":14,"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/posts\/12857\/revisions"}],"predecessor-version":[{"id":13298,"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/posts\/12857\/revisions\/13298"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/media\/12865"}],"wp:attachment":[{"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/media?parent=12857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/categories?post=12857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.planetwebsolution.com\/blog\/wp-json\/wp\/v2\/tags?post=12857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}