Not without adding some code to you template.
Inside the template file of a production you can add something like:
$production = new WPT_Production();
$args = array(
'html' => true
);
echo $production->title($args);
echo $production->categories($args);
Or maybe you can just place this shortcode inside the text of your production:
[wpt_productions post__in="123"]{{categories}}[/wpt_productions]
Where you need to replace ‘123’ with the ID of the production.
This may be a bit heavy on the server if you do this in too many places.
Hi Jeroen,
I am making great progress in developing my own custom post template (single-wp_theatre_prod.php) and have included the above succesfully.
I have also bought your Kijkwijzer extension (looks great) but echo $production->kijkwijzer($args); results in a fatal error: Call to undefined method WPT_Production::kijkwijzer()
How do I include the kijkwijzer in a custom template?
BTW the kijkwijzer div’s do not have a class assigned when using the wpt_events shortcode.
Cheers,
Casper
I just tried the solution for the BBFC icons on this page: https://wordpress.org/support/topic/bbfc-icons
but it results in an empty div (<div class=”wp_theatre_prod_kijkwijzer”></div>) eventhough the kijkwijzer is set for the production.
Casper!
The proper code is:
echo $production->custom('kijkwijzer', array('html' => true));
I just tested it on another website.
You can expect an update to the plugin soon. This update will automatically import the Kijkwijzer from your ActiveTickets events. I will also look into the missing class.
That’s strange. I get the kijkwijzer icons on the events listing, but not on the production page, using a custom template. I reverted back to the TwentyFifteen theme and only included the above code in the loop:
$production = new WPT_Production();
echo $production->custom(‘kijkwijzer’, array(‘html’ => true));
I’ll send you some evidence links per mail.