{"id":842,"date":"2019-07-02T10:33:14","date_gmt":"2019-07-02T10:33:14","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/compare-listings\/"},"modified":"2020-03-07T01:19:39","modified_gmt":"2020-03-07T01:19:39","slug":"compare-listings","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/compare-listings\/","title":{"rendered":"Compare Listings"},"content":{"rendered":"<p><span class=\"bookmark-index\"><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#install\">Installation<\/a><br \/>\n<a href=\"#settings\">Settings<\/a><br \/>\n<a href=\"#usage\">Usage<\/a><br \/>\n<a href=\"#options\">Options<\/a><br \/>\n<\/span><\/p>\n<h3><a href=\"#intro\" name=\"intro\">Introduction<\/a><\/h3>\n<ol>\n<li><em><strong>Compare Listings<\/strong><\/em> allows visitors to compare listings.<\/li>\n<li>Get the <em><strong>Compare Listings<\/strong><\/em> addon here.<\/li>\n<\/ol>\n<p><img class=\"alignnone size-full wp-image-844\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp1.png\" alt=\"\" width=\"1113\" height=\"484\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp1.png 1113w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp1-300x130.png 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp1-768x334.png 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp1-1024x445.png 1024w\" sizes=\"(max-width: 1113px) 100vw, 1113px\" \/><\/p>\n<h3><a href=\"#install\" name=\"install\">Installation<\/a><\/h3>\n<h4><a href=\"#prep\" name=\"prep\">Preparation<\/a><\/h4>\n<p>You will need this plugin installed and activated:<\/p>\n<ul>\n<li><a href=\"https:\/\/wpgeodirectory.com\/\">GeoDirectory V2<\/a><\/li>\n<\/ul>\n<h4><a href=\"#activate\" name=\"install\">Installation<\/a><\/h4>\n<ul>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/installing-addons\/\" rel=\"noopener\">Install the Addon<\/a>.<\/li>\n<\/ul>\n<h3><a href=\"#settings\" name=\"settings\">Settings<\/a><\/h3>\n<h4><a href=\"#template\" name=\"template\">Compare listings template<\/a><\/h4>\n<ol>\n<li>A new page will be available at <em><strong>GD &gt; Settings &gt; General tab &gt; Pages sub-tab &gt; Comparisons Page Settings<\/strong><\/em>:<br \/>\n<img class=\"alignnone size-full wp-image-845\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp2.png\" alt=\"\" width=\"909\" height=\"107\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp2.png 909w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp2-300x35.png 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp2-768x90.png 768w\" sizes=\"(max-width: 909px) 100vw, 909px\" \/><\/li>\n<li>That is the page that your visitors will see after they select listings to compare.<\/li>\n<li>It uses the\u00a0<em><strong>[gd_compare_list]<\/strong><\/em>\u00a0shortcode or the <em><strong>GD &gt; Compare List<\/strong><\/em> block.<\/li>\n<\/ol>\n<h4><a href=\"#button\" name=\"prep\">Compare Button<\/a><\/h4>\n<ol>\n<li>You can add the <em><strong>Compare Button<\/strong><\/em> to your Detail page and the GD Archive Item template.<br \/>\n<img class=\"alignnone size-full wp-image-846\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp3.png\" alt=\"\" width=\"97\" height=\"39\" \/><\/li>\n<li>Use the\u00a0<em><strong>[gd_compare_button]<\/strong><\/em>\u00a0shortcode or the <em><strong>GD &gt; Compare Button<\/strong><\/em>\u00a0block or widget.<\/li>\n<\/ol>\n<h4><a href=\"#fields\" name=\"fields\">Selecting custom fields to compare<\/a><\/h4>\n<ol>\n<li>To select which custom fields will be added to the comparison table on the <em><strong>Compare List<\/strong><\/em> page, you need to select <em><strong>Comparison Page<\/strong><\/em> in the <em><strong>Show in extra output location<\/strong><\/em> settings for each custom field:<br \/>\n<img class=\"alignnone size-full wp-image-849\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp6.png\" alt=\"\" width=\"373\" height=\"83\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp6.png 373w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp6-300x67.png 300w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><\/li>\n<\/ol>\n<h4><a href=\"#page\" name=\"page\">Preset Compare listings pages<\/a><\/h4>\n<ol>\n<li>You can also create your own preset pages by adding the post IDs of your listings to the\u00a0<em><strong>[gd_compare_list]<\/strong><\/em>\u00a0shortcode, for example:\n<pre><code class='css'>[gd_compare_list items=&quot;1596,1594,1592,1590,1588&quot;]<\/code><\/pre>\n<\/li>\n<\/ol>\n<h3><a href=\"usage\" name=\"usage\">Usage<\/a><\/h3>\n<ol>\n<li>The <em><strong>Compare Button<\/strong><\/em> allows your visitors to add listings to the <em><strong>Compare List:<br \/>\n<img class=\"alignnone size-full wp-image-847\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp4.png\" alt=\"\" width=\"759\" height=\"205\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp4.png 759w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp4-300x81.png 300w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><br \/>\n<\/strong><\/em><\/li>\n<li>The listings will be added to a list, and when ready, your visitor can click <em><strong>Compare<\/strong><\/em> to see the listings side by side:<br \/>\n<img class=\"alignnone size-full wp-image-848\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp5.png\" alt=\"\" width=\"483\" height=\"346\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp5.png 483w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/07\/comp5-300x215.png 300w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/li>\n<\/ol>\n","protected":false},"featured_media":0,"parent":167,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/842"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=842"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/842\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/167"}],"next":[{"title":"Custom Post Types","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/custom-post-types\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/189"}],"prev":[{"title":"Claim Listings","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/claim\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/445"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=842"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}