{"id":365508,"date":"2025-10-26T11:46:04","date_gmt":"2025-10-26T05:46:04","guid":{"rendered":"https:\/\/directorist.com\/?post_type=docs&#038;p=365508"},"modified":"2025-10-26T11:46:08","modified_gmt":"2025-10-26T05:46:08","password":"","slug":"compare-listings","status":"publish","type":"docs","link":"https:\/\/directorist.com\/docs\/compare-listings\/","title":{"rendered":"Compare Listings"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview <\/h2>\n\n\n\n<p>The <strong>Compare Listings<\/strong> extension allows your users to select multiple listings and view them side by side in a comparison table \u2014 helping them decide more easily without bouncing between pages. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why Use the Compare Listings Extension?<\/strong> <\/h2>\n\n\n\n<p>Switching between multiple detail pages can be cumbersome and time-consuming. With this extension:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Users can compare <strong>2\u20135 listings<\/strong> in a single view<br><\/li>\n\n\n\n<li>Essential listing attributes (e.g. price, rating, category) appear side by side<br><\/li>\n\n\n\n<li>You can include <strong>custom fields<\/strong> in comparisons, giving flexibility for your directory\u2019s unique attributes<br><\/li>\n\n\n\n<li>The \u201cCompare\u201d button can appear in many strategic locations<br><\/li>\n\n\n\n<li>It\u2019s fully responsive and supports translations<br><\/li>\n<\/ul>\n\n\n\n<p>For example, in a real estate directory, someone can pick several apartments, compare their features (square footage, amenities, price, etc.), and choose the best option \u2014 all in one glance. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Features <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Compare up to <strong>5 listings<\/strong> in one table<br><\/li>\n\n\n\n<li>Compare built-in attributes like price, rating, category<br><\/li>\n\n\n\n<li>Support for <strong>custom fields<\/strong> (so you choose which attributes users compare)<br><\/li>\n\n\n\n<li>Flexible display of \u201cCompare\u201d buttons on:<br>\n<ul class=\"wp-block-list\">\n<li>All Listings pages<br><\/li>\n\n\n\n<li>Single Listing pages<br><\/li>\n\n\n\n<li>Related Listings<br><\/li>\n\n\n\n<li>User dashboard \/ author profile<br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Option to <strong>exclude<\/strong> the compare button on specific pages<br><\/li>\n\n\n\n<li>Set a <strong>limit<\/strong> (2\u20135) on how many listings a user can compare<br><\/li>\n\n\n\n<li>Fully <strong>responsive<\/strong> layout<br><\/li>\n\n\n\n<li>Translatable (compatible with localization) <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How It Works (User Flow)<\/strong> <\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A user clicks \u201cAdd to Compare\u201d (or a similar label) on any listing.<br><\/li>\n\n\n\n<li>That listing is added to a temporary compare list (up to the defined limit).<br><\/li>\n\n\n\n<li>Users can view the comparison page, where each selected listing is arranged side by side, with comparison rows for each attribute.<br><\/li>\n\n\n\n<li>Users may remove listings, or proceed to inspect more closely or act (contact, purchase, etc.).<br><\/li>\n<\/ol>\n\n\n\n<p>Because custom fields are supported, you can include exactly those attributes you want your users to compare \u2014 e.g. \u201cBedrooms,\u201d \u201cWarranty,\u201d \u201cAmenities,\u201d etc. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Setup &amp; Configuration<\/strong> <\/h2>\n\n\n\n<p>You can manage Compare Listings settings under <strong>Directory Listings \u2192 Settings \u2192 Extensions \u2192 Compare Listings<\/strong>.<\/p>\n\n\n\n<p>Typical configurable options include: <\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Setting<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>Purpose<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Title<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">The heading for the comparison page (e.g. \u201cCompare Listings\u201d)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Limit<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">Maximum number of listings a user may compare (between 2 and 5)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Button Locations<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">Choose where \u201cCompare\u201d buttons appear (All Listings, Single Listing, Author Profile, etc.)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Exclude Pages<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">Provide a list of pages where the compare button should <em>not<\/em> appear<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Save Changes<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">Always save after adjusting settings<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You\u2019ll also need to add the Compare button into your listing layouts:<br><br><strong>All Listings page<\/strong>: Under <em>Directory Builder \u2192 All Listing Layout<\/em>, insert the Compare Listing Button at your desired position. <\/p>\n\n\n\n<p><strong>Single Listing page<\/strong>: Under <em>Directory Builder \u2192 Single Page Layout \u2192 Listing Header<\/em>, insert the compare button in the appropriate spot. <\/p>\n\n\n\n<p>Note: Once users click \u201cCompare,\u201d a sidebar or section will show their selected listings. They can remove items with a trash icon or click \u201cCompare\u201d to view the full comparison.<br><em>(Images illustrating these steps help guide users visually.)<\/em> <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example Workflow with Images<\/strong> <\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Adding listings<\/strong> \u2014 Users click the compare button on listings they like.<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Sidebar list<\/strong> \u2014 Selected listings appear in a sidebar or floating area.<\/li>\n<\/ol>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Remove option<\/strong> \u2014 A trash icon lets users remove any listing from the list.<\/li>\n<\/ol>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Compare view<\/strong> \u2014 On clicking \u201cCompare,\u201d the listings open side by side in a dedicated comparison table.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Considerations &amp; Best Practices<\/strong> <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <strong>clear labels<\/strong> (e.g. \u201cAdd to Compare,\u201d \u201cRemove,\u201d \u201cCompare Now\u201d) to avoid confusion<br><\/li>\n\n\n\n<li>Avoid including too many fields \u2014 choose only the most meaningful attributes<br><\/li>\n\n\n\n<li>Keep the comparison <strong>limit<\/strong> manageable (5 is a good standard)<br><\/li>\n\n\n\n<li>Place the compare button <strong>consistently<\/strong> across views (grid, list, single)<br><\/li>\n\n\n\n<li>Always check <strong>mobile \/ responsive views<\/strong> to make sure the table remains legible<br><\/li>\n\n\n\n<li>Test excluding pages to avoid clutter in places where compare doesn\u2019t make sense<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview The Compare Listings extension allows your users to select multiple listings and view them side by side in a comparison table \u2014 helping them decide more easily without bouncing between pages. Why Use the Compare Listings Extension? Switching between multiple detail pages can be cumbersome and time-consuming. With this extension: For example, in a [&hellip;]<\/p>\n","protected":false},"author":22343,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[694],"doc_tag":[],"class_list":["post-365508","docs","type-docs","status-publish","hentry","doc_category-extensions"],"year_month":"2026-03","word_count":581,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Fairose Farabi","author_nicename":"farabisovware","author_url":"https:\/\/directorist.com\/author\/farabisovware\/"},"doc_category_info":[{"term_name":"Extensions","term_url":"https:\/\/directorist.com\/docs-category\/extensions\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/docs\/365508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/users\/22343"}],"replies":[{"embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/comments?post=365508"}],"version-history":[{"count":0,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/docs\/365508\/revisions"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/media?parent=365508"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/doc_category?post=365508"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/doc_tag?post=365508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}