Exclude="this"
-
I just updated to 1.3.0 and saw the new feature for excluding the current page. I was just beginning to look into how I could do this, so the update is very timely.
Now I’m not sure if it is me or there is a problem with the plugin. I have a custom post type for products. And I’m using the following code in a widget to display the thumnail for those pages in my sidebar:
[loop type=”book” count=”3″ offset=”0″ exclude=”this”]
<div class=”sidebar-book-thumnail-box”>
<div class=”sidebar-book-thumnail”>
[field image-link image_class=”image-shadow”]
</div>
</div>
[/loop]The problem is, the thumnail is not excluded when I’m on its page. If I put the page id in however, it does get excluded. Now the strange thing is, if I also add the following code to the actualy product page as well as keep the code in the sidbar widget, it is excluded:
[loop type=”book” exclude=”this”]
[/loop]Is this how this feature is to be used?
Thanks,
Adrianhttps://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘Exclude="this"’ is closed to new replies.