Listdom Location Shortcode

Display your listing directory independently This shortcode shows the Listdom listing directory WP plugin location which you entered anywhere that you want. On this page, you can see how to use the shortcode to display the location created in your listings.

Table of Contents

[listdom_location]

This shortcode displays the Listdom location that you specify. It can be used anywhere you want on your website. The shortcode takes one parameter, which is the name of the location that you want to display.

Shortcode Parameters

  • style: Specifies the style of the location display. Valid options are “image”, “simple”, and “clean”.
    • Usage: [listdom_location style="image"]
  • hide_empty: Determines whether to hide empty locations. Use the value “1” to hide and “0” to show.
    • Usage: [listdom_location hide_empty="1"] or [listdom_location hide_empty="0"]
  • ids: Filters locations by their IDs separated with a comma.
    • Usage: [listdom_location ids="1,2,3"]
  • search: Filters locations by a search keyword. You can add part of a term name to search between the terms like search=”Hot” and it will return matching terms.
    • Usage: [listdom_location search="keyword"]
  • parent: Filters locations by their parent ID.
    • Usage: [listdom_location parent="x"]
    • Explanation:
      • parent="0": Only top-level parent locations are displayed.
      • parent="x": Only the child locations of the specific parent location with ID “x” will be displayed.
  • orderby: Specifies the order by which to sort locations.
    • Options: “name”, “ID”, “count”. The default value is name.
    • Usage: [listdom_location orderby="name"]
  • order: Specifies the order direction (ascending or descending).
    • Options: “ASC”, “DESC”. The default is “ASC”.
    • Usage: [listdom_location order="ASC"] or [listdom_location order="DESC"]
  • limit: Limits the number of locations displayed. The default is 8.
    • Usage: [listdom_location limit="10"]
  • max_grid: Specifies the maximum number of grid items per row. The default is 8 and this parameter is only available in the image style. Note: This is the maximum number and not the exact number. It means that the number of items per row cannot be more than the value inserted but may be less than that based on the total count.
    • Usage: [listdom_location style="image" max_grid="4"]
  • grid: Specifies the number of columns in the grid layout. It’s not available in the image style.
    • Usage: [listdom_location grid="3"]
  • show_count: Determines whether to display the count of items for each location. Use the value “1” to show and “0” to hide.
    • Usage: [listdom_location show_count="1"] or [listdom_location show_count="0"]
  • hierarchical: Determines whether to display hierarchical locations. The default is 0. Use the value “1” to show and “0” to hide. It’s disabled while the style is image and works only in clean and simple styles.
    • Usage: [listdom_location hierarchical="1"] or [listdom_location hierarchical="0"]

Examples

[listdom_location style=”image” max_grid=”8″ show_count=”1″] 👇

[listdom_location grid=”4″ hide_empty=”1″ show_count=”1″] 👇

[listdom_location style=”simple” grid=”3″] 👇

Still Stuck? We’re Here to Help.

Share:

LET'S GET STARTED

Start a directory site today!

Join thousands of Listdom users and build a directory and classified website.

Table of Contents