Exclude current post ID dynamically
-
I’m trying to use ALM at the bottom of single posts to load a couple of other items, but I can’t figure out how to exclude the current post ID (which will change). There is another thread on this already, but I’m struggling to adapt that code.
The shortcode I need to use is:
[ajax_load_more post_type="post" orderby="rand" posts_per_page="2" pause="true" max_pages="0" transition="fade" button_label="More"]
Any help greatly appreciated!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Exclude current post ID dynamically’ is closed to new replies.