Title: Listing or raster layout shortcode
Last modified: January 22, 2017

---

# Listing or raster layout shortcode

 *  Resolved [jeffreyrb](https://wordpress.org/support/users/jeffreyrb/)
 * (@jeffreyrb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/listing-or-raster-layout-shortcode/)
 * Is there a method to show the listings only as a raster / grid layout on a specific
   shortcode? Because when I change it to list on another page it also changes it
   on the homepage where I want to to stay in a raster / grid layout.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Merv Barrett](https://wordpress.org/support/users/mervb1/)
 * (@mervb1)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/listing-or-raster-layout-shortcode/#post-8686309)
 * You will need to create a [custom template](http://codex.easypropertylistings.com.au/article/63-how-to-create-custom-templates-and-use-them-with-shortcodes)
   to achieve this and add the following class.
 * For instance [here](https://github.com/easypropertylistings/Easy-Property-Listings/blob/master/lib/templates/content/loop-listing-blog-default.php)
   is the default loop template.
 * On the first line of the template you can see the post_class function
 * <?php post_class(‘epl-listing-post epl-property-blog epl-clearfix’); ?>
 * insert the following class to force grid mode.
 * epl-listing-grid-view-forced
 * eg
    `<?php post_class('epl-listing-post epl-property-blog epl-listing-grid-view-
   forced epl-clearfix'); ?>`
 * That will now force grid mode on your template. Note the grid/list view will 
   no longer work with that template, which is exactly what you are trying to do.
 * For faster [support by email see here](https://easypropertylistings.com.au/support-pricing/)
   for additional requests.
 *  Thread Starter [jeffreyrb](https://wordpress.org/support/users/jeffreyrb/)
 * (@jeffreyrb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/listing-or-raster-layout-shortcode/#post-8687677)
 * oke thanks.
 *  [mgnelsonhill](https://wordpress.org/support/users/mgnelsonhill/)
 * (@mgnelsonhill)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/listing-or-raster-layout-shortcode/#post-8787547)
 * I couldn’t find a class that forces the list view- is there one already within
   or how could I disable the grid view?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Listing or raster layout shortcode’ is closed to new replies.

 * ![](https://ps.w.org/easy-property-listings/assets/icon-256x256.png?rev=984159)
 * [Easy Property Listings](https://wordpress.org/plugins/easy-property-listings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-property-listings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-property-listings/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-property-listings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-property-listings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-property-listings/reviews/)

## Tags

 * [grid layout](https://wordpress.org/support/topic-tag/grid-layout/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 3 participants
 * Last reply from: [mgnelsonhill](https://wordpress.org/support/users/mgnelsonhill/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/listing-or-raster-layout-shortcode/#post-8787547)
 * Status: resolved