• Is there any way to specify multiple statuses in the shortcode? This shortcode works:

    [listings taxonomy=”status” term=”available”]

    But this shortcode doesn’t:

    [listings taxonomy=”status” term=”available,active”]

    Also, is there a version of the shortcode that shows all properties without statuses? That would also solve my problem.

    Please let me know there is a way to do this or I can provide more detail about my issue.

    Thanks for the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author agentevolution

    (@agentevolution)

    [listings] will show all of the listings and if you want to limit this to show a certain amount or control how many columns are shown you can expand on that shortcode.

    limit
    = limit the number of posts to show, defaults to all
    columns
    = display output in columns, accepts values 2-6, default is 1 column

    [listings limit="12" columns="3"] for example.

    Thread Starter Collin Condray

    (@ccondray)

    Thanks for the reply however, I’m not sure I explained things correctly. I wasn’t referring to the display parameters of the shortcode. Those are working as expected.

    My question was about the custom taxonomy part of the shortcode parameters. I have a Status taxonomy that shows the property’s current status (Available, Active, For Rent, etc.). I would like to either show all properties that have no status taxonomy set. If that is not possible, I would like to bo able to set multiple status to be displayed.

    I don’t think this is possible based on the code starting at line 47 of includes/shortcode.php. It just looks like it handles a single parameter as described in the Simple Taxonmy Query as describe the WP docs (https://codex.www.ads-software.com/Class_Reference/WP_Query#Taxonomy_Parameters). Do you recommend any other way of specifying multiple taxonomy values?

    Thank you for your help.

    Plugin Author agentevolution

    (@agentevolution)

    For that you would need to use different shortcodes to handle that.

    Thread Starter Collin Condray

    (@ccondray)

    Are you referring to another shortcode within the plugin or will we have to create our own shortcode? If there is another shortcode in the plugin, can you tell me what the syntax of it is?

    Thanks,

    Collin

    I’m trying to do the same thing as Collin. Use the shortcode to pull in two status terms, for example “new” and “reduced”.

    I tried using a comma and just a space, and neither method work:

    [listings taxonomy="status" term="new,reduced" limit="10" columns="3"]
    [listings taxonomy="status" term="new reduced" limit="10" columns="3"]

    • This reply was modified 7 years, 11 months ago by AardvarkGirl.
    Thread Starter Collin Condray

    (@ccondray)

    Our client has asked for this functionality from this plugin again. Is there any way to specify multiple statuses in the shortcode? Are there different shortcodes I can use to achieve this effect? If so, what are they and what is their syntax?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multiple Statuses In Shortcode’ is closed to new replies.