Please note, this is a STATIC archive of website www.themepunch.com from 28 Sep 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Exclude Current Post

home_topbanner

Exclude the current Post from being included in the Grid.
Useful for "Related Posts" grids.

Let’s say you have a blog, and each post from your blog also contains a grid.  And the items for this grid represent all your blog posts.  If you want to exclude the current post from this grid, you can add the following PHP snippet to your theme’s “functions.php” file.

In the PHP snippet, for the “$grid_id == 1” parts, this will check to make sure the functionality is only applied to your specific grid.  To get the ID for your grid, visit the plugin’s main admin page where your grids are listed:

grid_id