Skip to content

How to Add a Compare Button to Custom or Any Other Post Type in Elementor?

Table Of Content

Compare isn’t only useful for products – a real estate listing, a car dealership inventory, or any custom post type with comparable attributes can benefit from the same feature.

Woo Compare’s Post Type control is separate from its Type/Compare Type controls, and accepts any post type registered on the site, not only WooCommerce products.

For the full settings tour of every Woo Builder widget, see Woo Builder Settings Overview.

Requirement – This widget is a part of The Plus Addons for Elementor Pro, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Prerequisite: Elementor (free) installed and active.
  • Prerequisite: WooCommerce installed and active, with at least one published product.
  • Edition: all Woo Builder widgets are part of The Plus Addons for Elementor Pro – a Pro licence is required.
  • Widget to enable: go to The Plus Addons > Widgets, search for Woo Compare and turn its toggle on.
  • A custom post type already registered on the site (by your theme or another plugin) if you want to compare something other than posts, pages or products.

Steps

  1. Add the Woo Compare widget wherever you want the compare control to appear on the custom post type’s archive or single template.
  2. From Post Type, choose the post type you want to enable comparison for – this list includes every post type registered on the site, not only Product.
  3. Configure Type/Compare Type/Count Type exactly as described in the other Woo Compare docs – they behave the same regardless of which post type is selected.
Post type dropdown listing every registered post type

Why WooCommerce Is Still Required

Even though the Post Type control isn’t limited to Product, the widget itself is still gated on WooCommerce being active (confirmed in source) – WooCommerce does not need to be the subject of the comparison, but it must be installed and active for the widget to register.

Settings Overview

SettingWhat it doesDefault
Post TypeWhich post type the compare feature applies to.Product

Not verified

So you know exactly what has and has not been checked:

  • Live comparison-table rendering against a real custom post type’s own fields (rather than WooCommerce product fields) – not yet tested against a real custom post type fixture.

Related Docs

Related Frequently Asked Questions

Related Docs