Skip to content

Marking Ads as Sold via Custom Field 'Offer Type'

Build an "Offer Type" custom field so a listing can be switched between Active and Sold, show the Sold label on the ad card, and keep sold ads out of the main search form.

3 minute read

By default, the theme does not provide an option to mark listings as "Sold." However, you can use custom fields to let your forms select between "Active" and "Sold." You can also display this label on the ad card and remove all "Sold" listings from the main search form if desired. Below is a step-by-step guide on how to handle this case.

1. Create a new field

  1. 1 Open Custom Fields

    Go to your theme settings and create a new custom field.

    The Custom Fields screen of the Listivo Panel, with arrows pointing from Custom Fields in the sidebar to the Add New Field button; the field list below shows Category, Price and Bedrooms.
  2. 2 Add the "Offer Type" field

    Select the field type as "Taxonomy" and name it, for example, "Offer Type." Refer to the image below for guidance. Click "Add Field."

    The Add New Field form with Name set to "Offer Type" and Type set to Taxonomy, with arrows pointing to both boxes and to the Add Field button.

2. Add two options to "Offer Type" - Active and Sold

  1. 1 Open the new taxonomy

    Hover over "Ads" and select "Offer Type" (your newly created field) from the dropdown menu.

    The WordPress sidebar with the Ads submenu open, listing Ads, Add New Listing, Category, Contract Type, Recruiter Type, Job Level, Hours, Make, Model and other taxonomies, with Offer Type highlighted at the bottom.
  2. 2 Add the two terms

    Add two types of offers: "Active" and "Sold."

    The Add New Offer Type screen: an empty Name, Slug and Description form on the left, and the term list on the right already containing Active and Sold.

3. Display the new field as an ad card label

  1. 1 Visit Elementor Site Settings

    Open the Edit with Elementor menu and choose Site Settings.

    The WordPress admin bar menu under "Edit with Elementor", offering Layout Light (Post), Site Settings (Site) and Theme Builder (Site).
  2. 2 Choose "Ad Card"

    Under Theme Style, pick Ad Card.

    The Elementor Site Settings panel: Global Colors and Global Fonts under Design System, and Design, Ad Card, Featured Ad Card and Quick preview under Theme Style.
  3. 3 Set Item #1 to "Featured"

    Select the "Label type" as "Default" and configure Item 1 as "Featured."

    The Listivo Ad Card settings in Elementor with Label type set to Default and Item #1 expanded, its Value set to Featured.
  4. 4 Set Item #2 to "Offer Type"

    Configure Item 2 as "Offer Type."

    The same Listivo Ad Card settings with Item #2 expanded and its Value set to Offer Type.

Now, the offer type value will be displayed on your ad cards.

4. Edit the "Sold" term

  1. 1 Go back to Ads > Offer Type

    Return to the screen where you added the terms.

    The Add New Offer Type screen again, with Active and Sold in the term list on the right.
  2. 2 Edit the "Sold" term

    Hover over the term and click Edit.

    The Offer Type term list with Active and Sold, and the row actions under Sold showing Edit, Quick Edit, Delete and View.
  3. 3 Set the label colours

    You will find three new settings. The first, "Do not show as card label," can be useful in other contexts (e.g., check it later for the "Active" term if you do not need the "Active" label to be displayed). More importantly, you will see controls for Card Label Text Color and Card Label Background Color. For the "Sold" label, set these as desired — for example, a black background with a light red text colour, as shown.

    Three term settings: an unticked "Do not show as card label" checkbox, a pale pink Card Label Text Color swatch and a black Card Label Background Color swatch.

5. Mark an ad as sold

Edit any ad you wish via the front-end or backend panel and select the "Sold" option from "Offer Type."

The ad edit form with Category set to Devices and the Offer Type field set to Sold, its dropdown open on the options Active and Sold.

From now on, your ad card will display the "Sold" label.

An ad card for "My Old Phone" in New York, NY, USA at $4,700, with a black Sold badge in the top-left corner of the photo.

6. Exclude sold ads from the main search form

Visit the Listivo Panel > Search. Choose "Sold" in the "Exclude From Search" option. This ensures that sold ads do not appear in the main search results but remain accessible via direct links or search engines like Google, avoiding 404 errors.

The Listivo settings screen on the Search tab, with "sol" typed into Exclude From Search and a suggestion list showing Sold, Soldering flux and Soldering iron.
What is not available yet
We plan to add more options related to "Sold" in the future, such as displaying it on the ad cards in the front-end panel "My Ads" page to quickly mark it. For now, these additional options are not available. You can only use general custom field options, such as changing the order of this field, making it required, adding a hot tip next to it, etc.

Ask the people who build Listivo

We answer by email from support@tangiblewp.com. With Premium Support, we also fix your site when something breaks.

Was this guide helpful?