To use shortcodes in template files, you need to use something like:
<?php echo do_shortcode('[eshop_list_subpages panels=yes]');?>
It looks like i’m doing something wrong..
<div id=”content”>
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<?php echo do_shortcode(‘[eshop_list_subpages panels=yes]’);?>
<?php endwhile; ?>
<?php else : ?>
<div class=”post”>
<h2><?php _e(‘Not Found’); ?></h2>
</div>
<?php endif; ?>
</div><!– end content –>
Anonymous User
(@anonymized-3085)
should be:
do_shortcode('[eshop_list_subpages panels="yes"]');
Thanks for reply, but still doenst work.. But lets go a level higher.
I have a seks webshop, and i want the folowing:
Homepage : slider with 8 most populair sold items
Homepage : 8 more populair sold items or just last new items..
Then i want to create categories: Lingerie, Shoes, Accesories, Toys, …
Is this all able with eShop? Beleve me i searched alot but didnt find anything yet.. Ill keep searching while waiting for answer 😉
EDIT : I know i can use shortcodes for the populair items, but i dont know how i can devide products into categories, en then just display them on the correct page..
Thanks!
http://codex.wordpress.org/Category_Templates
This has nothing directly to do with eShop. It’s about learning how to use WordPress effectively.
Anonymous User
(@anonymized-3085)