Add checkbox attribute to shortcode
-
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!
The topic ‘Add checkbox attribute to shortcode’ is closed to new replies.