Jump to content
Sign in to follow this  

custom Carousel - not doing shortcode

Recommended Posts


Hey, so I've customized my section.carousel.php by adding a call for the post content to be placed after the title: on line 153:

	<div class="carousel2post"><?php echo $c->post_title; ?>[b]<?php echo $c->post_content; ?>[/b]</div>
So with a bit of CSS this is displaying neatly within my carousel, however, the primary component I want to show here is not working, that is my 'wpaudio' plugin is not taking my [wpaudio] shortcode and replacing it with a player. The shortcode is working in post pages as it's supposed to. If you're not familiar with the wpaudio plugin or code (as I am not) here's what I believe is the most pertinent code from the wpaudio.php plugin, for the filters:
	## WP handlers - add WPaudio processing at necessary events
	# If it's not an admin page, get everything for the player
	if ( !is_admin() ) {
		# Calling scripts
		add_action('init', 'wpaLibraries');
		# Add header action to include CSS and JS vars
		add_action('wp_head', 'wpaHead');
		# Add shortcode for WPaudio player
		add_shortcode('wpaudio', 'wpaShortcode');
		# Add filter for shortcode in excerpt and widgets
		add_filter('post_content', 'do_shortcode');
		add_filter('the_excerpt', 'do_shortcode');
		add_filter('widget_text', 'do_shortcode');
		# Add filter for non-shortcode substitutes (including excerpts and widgets)
		if ($wpa_options['wpa_tag_audio']) {
			add_filter('the_content', 'wpaFilter');
			add_filter('the_excerpt', 'wpaFilter');
			add_filter('widget_text', 'wpaFilter');

I'm a bit ignorant about how filters and such are supposed to work, and I realize this is a bit in left field. Any help would be awesome! (Adam?)

Share this post

Link to post
Share on other sites

Adam I know you're a genius and this is easy for you, please help :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this