Do Shortcode not working when not logged in
-
Hi there,
We are using the Enfold theme, and Wishlist and Compare from you.
It’s working perfectly when logged in, but logged out, the do_shortcodes won’t work.
We do not have any caching plugins activated.
We are using the shortcodes in a product grid, and also in a slider, but as I said, they only work logged in. I can’t seem to understand why.
These are my snippets:Grid:
#child-theme/woocommerce/content-product.php # (previous code) global $product; # ... ?> <div class="tag-wrapper"> <?php echo apply_filters( 'the_content',' [yith_compare_button] '); <?php # (rest of the code)
Slider: (same link, but (url)/shop-startseite/)
# ... $html .= do_shortcode( '[yith_wcwl_add_to_wishlist product_id="' . $product->get_id() . '"]', false ); # ...
They both work perfectly logged in, but not logged out, so I guess it’s not an issue within the code itself.
Can you guys help me out here?
Thanks in advance!The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Do Shortcode not working when not logged in’ is closed to new replies.