Previous Post Addon – previous_post_taxonomy not working
-
Hi Darren,
is there an working example for the Previous Post Addon using the previous_post_taxonomy parameter? I couldn’t find one.
If I use the Addon without the previous_post_taxonomy parameter everything works fine. But if I use the parameter with a value, ALM loads the same post if I click the load previous post button.
Shortcode Parameters I use:
'post_type' => 'post', 'posts_per_page' => '1', 'previous_post' => 'true', 'previous_post_id' => get_the_id(), 'previous_post_taxonomy' => 'behind-the-scenes', 'scroll' => 'false', 'pause' => 'true', 'images_loaded' => 'true', 'button_label' => $button_label, 'button_loading_label' => $button_loading_label, 'theme_repeater' => 'loop-post-single.php',
Maybe this hasn’t been tested yet and just don’t works or we need to get the ID in a different way then (get_the_id() gets the ID depending on the_loop, since I’m not on a category page but on a single page, the_loop may contain all posts and not only the ones in my previous_post_taxonomy)?
- The topic ‘Previous Post Addon – previous_post_taxonomy not working’ is closed to new replies.