darrcass
Forum Replies Created
-
Forum: Plugins
In reply to: [Theater for WordPress] Trailer in iframe won’t display right or playI did mine by hand, but I had to edit a file in the plugin to get the custom post type to support custom fields. Then I added a custom field called
video_url
Forum: Plugins
In reply to: [Theater for WordPress] Accessing events within [wpt_productions]Yeah. I am having a really hard time figuring this out. The shortcode mentioned in th OP is now on this page
There has got to be some way of getting the show times for each day’s productions, but I am really stuck.Forum: Plugins
In reply to: [Theater for WordPress] Accessing events within [wpt_productions]Thanks, but I’m a bit confused. The {{dates}} placeholder displays the dates. I already have everything grouped by date. A production can have multiple show times in a single day. The times are what I need access to.
Forum: Plugins
In reply to: [Theater for WordPress] Show a production only once on a given dayLooking for alternatives.
Forum: Plugins
In reply to: [Theater for WordPress] Support for Block EditorThat would be great if Gutenberg is supported in the next update. Thanks.
Forum: Plugins
In reply to: [Theater for WordPress] Theatre Productions widget suddenly throwing noticesProblem went away as mysteriously as it appeared. Oh well.
Forum: Plugins
In reply to: [Theater for WordPress] Accessing events within [wpt_productions]I can see that the events are loaded with the productions with
preload_productions_with_events()
and if I put {{events}} into my shortcode template, it will display “Array.” I just can’t figure out how to get into that array.Forum: Plugins
In reply to: [Theater for WordPress] Show a production only once on a given dayMaybe I am seriously missing something, but I’m getting ready to write versions of your private methods that will accomplish what we need. Seriously though, I’m feeling like a dork because there has got to be a simpler way.
Forum: Plugins
In reply to: [Theater for WordPress] [wpt_production_events groupby=”day”] ?Oooo! That looks cool. And possibly more “correct,” but I have tried to run “do_shortcode” in a template and it doesn’t seem to work.
Right now I just stuck my above code into the sidebar and it looks pretty good.
Forum: Plugins
In reply to: [Theater for WordPress] [wpt_production_events groupby=”day”] ?Well this works just fine!
function usfrida_wpt_production_events( $post_ID ) { $post_type = get_post_type( $post_ID ); if( $post_type != 'wp_theatre_prod' ) return; global $wp_theatre; $events = $wp_theatre->events; $args = array( 'production' => $post_ID, 'start' => 'now', 'groupby' => 'day', 'template' => "{{datetime|date('g:i a')}} {{tickets}}" ); $out = '<h3 class="widget-title">SHOWTIMES</h3>'; $out .= $events->get_html( $args ); echo $out; }
Forum: Plugins
In reply to: [Theater for WordPress] Support for Block EditorThe problem with simply adding “‘show_in_rest’ => true,” to the args for the post type is that the block editor works just fine, but the AJAX for adding the dates gets screwed up and you can’t add events.
Forum: Plugins
In reply to: [Theater for WordPress] [wpt_production_events groupby=”day”] ?Ok, got the code
global $wp_theatre; $events = $wp_theatre->events; $args = array( 'groupby' => 'day' ); $out = $events->get_html( $args );
Right?
The date format for the headings, with the leading zeros for day, looks awful. Is there a way to filter that?
Forum: Plugins
In reply to: [Theater for WordPress] [wpt_production_events groupby=”day”] ?… or a way to do the same thing in PHP? I’ve been trying this approach as well, but can’t figure out how to access a production’s dates.
Forum: Plugins
In reply to: [Theater for WordPress] [wpt_productions] shortcode[wpt_productions]{{thumbnail|permalink}}[/wpt_productions] ???
Forum: Plugins
In reply to: [Theater for WordPress] Support for Block EditorYes. Gutenberg. They’re calling it the Block Editor as well.