dinamically excluding current post
-
Hi, I am using PHP function in_category() to show posts through the post grid plugin, for example I am reading post id 1, at the end of the post I did put a new grid about related posts of a given category.
Is it possible to exclude the current post ID ?<?php if(in_category('27')){ ?><?php echo do_shortcode( '[the-post-grid id="560" title="inside_post"]' ) ?><?php }?>I thought i could extract ID post before but how to get it works within the post grid ?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘dinamically excluding current post’ is closed to new replies.