Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Woocommerce [woocommerce_cart] shortcode not working

So I'm working on this website and I'm using the woocommerce plugin. The plugin is working fine and I can add things to my cart the only problem is that I can't view my cart. The image I've added shows my "Cart" page and you can see it just simply shows the shortcode.

http://gyazo.com/f0710eeb2fd63643bb74607988559e02

I have no idea why it isn't working :(

like image 983
branco holtslag Avatar asked Dec 12 '22 03:12

branco holtslag


1 Answers

I found out what was wrong, I had to add this little bit of code in the page.php file:

<?php
echo apply_filters('the_content',$wp_query->post->post_content);
?>

Hope it will help anyone else too :)

like image 164
branco holtslag Avatar answered May 16 '23 08:05

branco holtslag