• Resolved igloobob

    (@igloobob)


    Hello,

    I use this shortcode to display properties on a page on my site:

    [property_overview per_page=15 sorter=on sort_by=price sort_order=DESC]

    I want to create a new page that only shows properties that have been sold.

    I have an attribute called ‘sold’ that is a checkbox on the property edit page.

    With it being a checkbox I’m not sure how to set up the shortcode. I would imagine something like this:

    [property_overview sold=on per_page=15 sorter=on sort_by=price sort_order=DESC]

    How can I incorporate this into the shortcode to only display properties that have the ‘sold’ attribute applied?

    Can anyone please advise?

    thanks!

    https://ww.wp.xz.cn/plugins/wp-property/

Viewing 1 replies (of 1 total)
  • Thread Starter igloobob

    (@igloobob)

    Sorry, found my answer!

    sold=true

    [property_overview per_page=15 sold=true sorter=on sort_by=price sort_order=DESC]

Viewing 1 replies (of 1 total)

The topic ‘Add checkbox attribute to shortcode’ is closed to new replies.