WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?

As the subject states… why is this happening? I have the following shortcodes registered so that the user can easily create a slideshow within their content and widgets. functions.php function u3_uk_slideshow( $atts , $content = null ) { $atts = shortcode_atts( array( ‘animation’ => ‘slide’, ‘autoplay’ => ‘true’, ‘autoplay-interval’ => ‘3000’, ‘finite’ => ‘true’, ‘id’…

How to create our own routes in wordpress for a custom post type?

I have a custom post type called ‘event’. Now an event has multiple subpages like registration, speakers, contact us, etc., I have each one of the content is saved as one or more custom fields. I would like to have an url structure like events\{event_slug}\registration events\{event_slug}\speakers events\{event_slug}\contactus etc and show only the information related to…