Using an Add to Favorites plugin with your WordPress and WooCommerce tables

July 7, 2021
WordPress Favorite Button Plugin

Today I'm going to tell you about a free plugin which adds Favorite buttons to your lists of WordPress posts, custom post types or WooCommerce products. It works beautifully with our Posts Table Pro, Document Library and WooCommerce Product Table plugins.

  • Are you creating a WordPress video gallery and want people to select their favorite videos?
  • Maybe you're listing WooCommerce products and want people to choose their favourite products? (Also see our tutorial about WooCommerce Wishlist plugins.)
  • Do you have a WordPress blog and want people to choose their favorite posts?
  • Perhaps you're listing events in WordPress and want people to mark the ones they'd like to attend.

Whatever your reason for needing favourite buttons on your website, you can use these instructions to add them to any list of WordPress posts, documents, any custom post type, or WooCommerce products.

How the favorite buttons work

You can use one of our table plugins to list your WordPress and WooCommerce content in a table. Then, you can use the Favorite plugin to add Favorite buttons. Your visitors can select their favorite posts or products, and create a handy shortlist.

When a visitors comes back to your website, they will still be able to see their selections. If they're not logged in then their favorites are stored via browser session or a cookie. If they have an account on your website, then their favorites will appear even if they re-visit from a different browser or device.

How to add Favorite buttons in WordPress or WooCommerce

  1. First, use Posts Table Pro, Document Library Pro and WooCommerce Product Table to list your WordPress posts, documents, custom post type or WooCommerce products in a table view. Set up the plugin using the instructions in the knowledge base, paying particular attention to the following settings:
    • When you add your list of columns, make sure you include the 'content' column (if you're using Posts Table Pro or Document Library Pro ) or the 'description' column (if you're using WooCommerce Product Table). This is where the favorite button will appear.
    • Make sure you enable the 'Shortcodes' option on the plugin settings page. This ensures that the button appears in the table correctly.
  2. Now go to Plugins→> Add New in the WP Dashboard.
  3. Search for 'Favorites' and you should see the plugin by Kyle Phillips in the list. Install and activate it.
  4. Now view the page where you've added the table. You will see a 'Favorite' button in the content column for each item in the table.

You can also add favorite buttons to other locations

The instructions above tell you how to add favorite buttons to the content/description columns the table. If you'd like to add them elsewhere - for example because you don't want this column in your table - then that's fine. Simply remove the content/description column and add the following shortcode to one of the other fields that you're displaying in the table (e.g. the excerpt or a text or Visual Editor custom field).


WooCommerce Quick View PluginThis is also a good tip if you wish to use the Favorites plugin with our WooCommerce Quick View Pro plugin with WooCommerce Product Table. Simply add the shortcode to the product short description, and show this in the quick view lightbox. That way, customers can add products to their list of favorites without having to visit the single product page.

Where to get the plugins

Use the free Favorite plugin from with whichever Barn2 plugin lists the type of content you're adding:


  1. David
    March 5, 2020 Reply


    Here’s my thing... My posts have an ACF repeater field, which has 4 sub-fields (plain text type). Then the value of these sub-fields are listed in a frontend table, each set of repeated sub-field sets in a separate row. This all works fine, but I would like to have a like button on the end of each row. I know about the posts table pro solution, but that only lists separate posts. I basically would have to have multiple like buttons inside one this possible to be achieved? Thanks!

    • EJ
      April 17, 2020 Reply

      Hi, David. Thanks for asking and my apologies for the late reply.

      For what you describe to be possible, the like/favorite/wishlist plugin that you use must be able to provide/display a Like button for each ACF repeater field sub-field's value. This requires either an integration between those two plugins, or a customization or bespoke feature via custom code, which I hope you'll understand is a developer-level task. If you don't have a developer who can do this for you, then I recommend that you post a job on Codeable where their pre-approved WordPress experts will send you a quote.

      Otherwise, the alternative is to list/display these as separate posts or products, as mentioned.

      Should you have any other questions, please let us know via our Support Center so that we can get back to you much sooner. Thanks!

  2. William Thomas
    January 24, 2020 Reply

    can this be added to galleries ... specifically to photo galleries? I'm also interested in knowing what the output is ... for example does the web site admin get a report of liked images by user? is there perhaps a list or something that visitors can pull up at a later time to see what they liked / saved on their previous visits?

Please share your thoughts...

Your email address will not be published.