1. Home
  2. Docs
  3. Shortcodes
  4. Shortcodes
  5. Single Listing

Single Listing

You can use one or all of the following shortcodes in a page to build your customized single listing page. These shortocdes are availalbe from the version 5.0.5 of Directorist. However, the old users will have no issue. They will still be able to use directorist old single listing page design. The difference is that now you can customize and order each section of the listing information in the version 5.0.5 whereas you could not do this in the earlier version of Directorist( in version 5.0.4 or less).

Use these shortcodes to customize the output of your single listing page according to your need. You can order them anyway you like or you may skip some of them. After adding them in a page, you need to add this page to the directorist single listing page settings (Available in Directorist Listings > Directorist Settings > Pages, Links & Views Page > Single Listing ) so that Directorist knows your custom single listing page and uses it to display the information of a single listing to the user.

Shotcodes of Single Listing:

All available shortcodes for building single listing page with their descriptions and sample screenshots are given below.

  1. [directorist_listing_top_area] : it outputs the top section of a listing that contains listing’s details and images as shown in the screenshot below.
    directorist_listing_top_area

    Output of the shorcode [directorist_listing_top_area]

  2. [directorist_listing_custom_fields] : It outputs all custom fields information of a listing. A sample screenshot is attached below.
    Output of the shorcode [directorist_listing_custom_fields]

    Output of the shorcode [directorist_listing_custom_fields]

  3. [directorist_listing_video]: It outputs the video of a listing if it has one. A sample screenshot is attached below.
    Output of the shorcode [directorist_listing_video]

    Output of the shorcode [directorist_listing_video]

  4. [directorist_listing_map]: It outputs the map of a listing. A sample screenshot is attached below.
    Output of the shorcode [directorist_listing_map]

    Output of the shorcode [directorist_listing_map]

  5. [directorist_listing_contact_information]: It outputs the contact information of a listing if it has. A sample screenshot is attached below.
    Output of the shorcode [directorist_listing_contact_information]

    Output of the shorcode [directorist_listing_contact_information]

  6. [directorist_listing_contact_owner]: It outputs a contact form to contact the ownerof a listing. But remember, you should enable the option to display listing owner contact form which is disabled by default in the settings. You can find the settings in Directorist Listings > Directorist Settings > Listing Settings > Single Listing page.
    Listing owner form display setting

    Listing owner form display setting

    A sample screenshot of the shortcode output is attached below.

    Output of the shorcode [directorist_listing_contact_owner]

    Output of the shorcode [directorist_listing_contact_owner]

  7. [directorist_listing_review]: It outputs the review section with a review form of a listing. A sample screenshot is attached below.
    Output of the shortcode [directorist_listing_review]

    Output of the shortcode [directorist_listing_review]

  8. [directorist_related_listings]: It outputs the related listings of a listing. A sample screenshot is attached below.
    Output of the shortcode [directorist_related_listings]

    Output of the shortcode [directorist_related_listings]

Setting the page for single listing

After building your single listing page with the above listed shortcodes, do not forget to add that page in the directorist single listing page setting.

Creating a page for single listing view with available shortcodes

Creating a page for single listing view with available shortcodes

Visit  Dashboard > Directorist Listings > Directorist Settings > Pages, Links & Views Page. Select the page that contains one or all of the above listed shortcodes in the Single Listing Page option. Then save the changes.

Available shortcodes for single listing

Adding a page with available shortcodes for single listing in the directorist settings