Hi,
I will add this in v1.0, that’s a good idea.
As I’ve said to another member, if you want, you can try the current development version.
I’ve added support for a shortcode parameter (eg. [parallaxcontentslider cat=”2″] or [parallaxcontentslider cat=”2,5″])
Regards
It seems that it works fine!
How this:
<?php if ( function_exists( 'get_wp_parallax_content_slider' ) ) { get_wp_parallax_content_slider(); } ?>
should look for different categories in your example in this development version?
For me shortcode doesn’t work in 0.9.4 version. Do you have any idea how can I fix it?
Hi snecz,
can you tell me the kind of errors you are seeing or maybe PHP errors stacks? Where do you put the shortcode ? Which version of the shortcode do you use (with or without parameters?)
I use
<?php echo do_shortcode( '[parallaxcontentslider cat="8"]' ); ?>
in template
and also tried with
[parallaxcontentslider cat="8"]
on page content.
No errors, just can see yellow wawes but no slides.
Thanks for reply. I’m just about to finish new site and that’s my last problem…
Hmm, it seems much more like a javascript error! Can you look inside your debug console?
Ok. The shortcode is working now after deleting
<?php if ( function_exists( 'get_wp_parallax_content_slider' ) ) { get_wp_parallax_content_slider(); } ?>
from the template. That was the conflict.
But problem is that it ignores category set in the shortcode and still depends on settings in admin panel.
Just solved this! I looked at your code and the shortcode should be:
[parallaxcontentslider categ="8"]
not
[parallaxcontentslider cat="8"]
Sorry for this mistake 🙁 I’ll fix the documentation ASAP