King of confusing but I’m trying to integrate another plugin’s shortcode inside of my client’s pods. The plugin i question is GigPress to display our dates. The idea is to use either their shortcode or widget code to display dates for one artst in the roster. So I have in my Artists’ pod a text field called gigs which related to the GigPress gig ID number. In this case…1. So here’s how it would work hard coded:
Unfortunately, Scott. That didn’t work. It should have returned a ’1′ (without the apostrophes, of course) and display dates. Instead it said ‘No Shows"…and I’m wondering why that would happen. It is possible, it’s displaying <p>1</p> instead of just 1? I notice a number of times the pod results incorporate <p> tags which quite frankly, I’d like to eliminate.
If $artists_gigs is not working, try to do a <?php var_dump( $artists_gigs ); ?> which will show you exactly what that value really contains on output.
If it’s got html in it, just do a <?php $artists_gigs = strip_tags( $artists_gigs ); ?> to take the tags out, and <?php $artists_gigs = (int) $artists_gigs; ?> to force the integer.