Hard code instead of using shortcodes
-
Hi,
Firstly, thanks for this plugin it seems to be nice & lightweight and exactly what I was looking for.
I’m using it on an eCommerce site I’ve been working on, but I now was to add a FAQ category to product pages within a category.
Eg. If a product is in the “toys” category, it will display the “toys” FAQ’s… if a product is in the “Kitchenware” category it will show the “kitchenware” FAQ’s…
As it stands at the moment I’d have to insert:
[qa cat=”toys”] …to every product in the toys category, manually.Shortcodes are good for many things but for this particular site I have over 3,000 products to add, so anything to save me time would be a huge bonus.
I’m thinking that if I can edit my product_listing.php (post template) with some php code/ if conditionals, I can achieve the needed – with your help of course ??
- The topic ‘Hard code instead of using shortcodes’ is closed to new replies.