Jeroen Schmit
Forum Replies Created
-
Forum: Plugins
In reply to: [Theater for WordPress] [wpt_calendar] does not workHi!
Please make sure to select a ‘Page to show upcoming events on’ in the Theater settings.
Is it the sw_postmeta.meta_key = ‘_wpt_order’ which is overruling my query?
Yes, it is. The Theater for WordPress plugin always orders events by this field. It it continuously being recalculated in the background to make sure that event are always ordered by their event dates. See: https://github.com/slimndap/wp-theatre/blob/master/functions/event/class-theater-event-order.php#L40
You can probably overrule this by adding your own filter to the
pre_get_posts
hook with a priority higer than 10.Hi!
Q1: The plugin does support custom fields. It doesn’t support the custom fields meta box. I think your comment in Q3 explains nicely why.
Q2: There is! You can use the
wpt/setup/post_type/args/?post_type=wp_theatre_prod
filter. See this line for the full definition.Q3: ACF is by far the best solution to add custom fields to production. You can add a ‘teaser’ field with ACF which should then be available in the shortcode as
{{teaser}}
.- This reply was modified 3 years, 8 months ago by Jeroen Schmit.
Forum: Plugins
In reply to: [Theater for WordPress] Display play dates for only one production?Hi Pieterjan,
Theater for WordPress can show the play dates of a production on the production detail page. You can enable this in the Theater settings.
You can also use the shortcode to display the playdates of a single production:
[wpt_events production=123]
See the documentation for more examples:
https://github.com/slimndap/wp-theatre/wiki/ShortcodesForum: Plugins
In reply to: [Theater for WordPress] Deleting a bulk of events gives critical errorOscar,
- How many events are your trying to delete?
- Does the error appear immediately or do you have to wait 10 or more seconds?
- Were some of the events deleted after the error? Or was nothing deleted at all?
Jeroen
Forum: Plugins
In reply to: [Theater for WordPress] Can′t create new datesHi Michael,
How weird.
Which version of WordPress are you running?
When you edit an event, do you see the new Gutenberg editor? Or the classic editor?- This reply was modified 4 years, 6 months ago by Jeroen Schmit.
Update for anyone reading along:
The issue happened because the extra line of code was added outside of the
<?php ?>
enclosure in thefunctions.php
of the child theme. We were able to fix it by moving the line of code inside of the php enclosure.No, I don’t see how this can be related. Can you specify what exactly doesn’t seem to work? And does it work again if you remove the new line of code?
Forum: Plugins
In reply to: [Theater for WordPress] Show more when using limitI see. There is no option to display a ‘read more’ link.
Another approach could be to automatically jump to the page of the first month.
You can achieve this by adding the following code snippet to the
functions.php
of your website:function veurs_set_default_month() { global $wp_query; global $wp_theatre; if ( is_page($wp_theatre->listing_page->page()->ID) && empty($wp_query->query_vars['wpt_month']) && empty($wp_query->query_vars['wpt_day']) && empty($wp_query->query_vars['wpt_category']) ) { $months_args = array( 'start' => 'now', ); $months = $wp_theatre->events->get_months($months_args); if (!empty($months)) { $months_keys = array_keys($months); $wp_query->query_vars['wpt_month'] = $months_keys[0]; } } } add_action( 'wp', 'veurs_set_default_month' );
Please make a backup before adding this code.
I assume you are talking about the default Gutenberg editor of WordPress that is now enabled for events.
To revert this:
- Update the Theater for WordPress plugin to v0.18.3.
- Add the following line to the
functions.php
of your (child) theme:add_filter( 'theater/gutenberg/support', '__return_false' );
Forum: Plugins
In reply to: [Theater for WordPress] Events slider showing past eventsHi Oscrar,
You can use this:
[wpt_events_slider mode="compact" limit="10" category_name="Het Veur Theater" end_after="now"]
Forum: Plugins
In reply to: [Theater for WordPress] Show more when using limitHi Oscar,
How did you try the
paginateby
andgroupby
arguments, because they should work. How are you showing the events on the events page? Did you use the setting in Theater → Settings or did you use the shortcode?- This reply was modified 4 years, 6 months ago by Jeroen Schmit.
Forum: Plugins
In reply to: [Theater for WordPress] Events Not Showing Front PageAlso: you don’t seem to be using the Theater for WordPress plugin for your website ??
Forum: Plugins
In reply to: [Theater for WordPress] Events Not Showing Front PageThat’s a great looking website!
You seem to be using some kind of page builder for the front page. The easiest way to display your upcoming events would be to use the shortcode. Eg.
[wpt_events]
. For all the options see: https://github.com/slimndap/wp-theatre/wiki/ShortcodesTo create a simple listings page you need to create a new blank page in WordPress. Then go to Theater → Settings and select the page that you just created in the ‘Page to show upcoming events on’-dropdown.
Forum: Plugins
In reply to: [Theater for WordPress] Cannot change session name errorThis is fixed in the lastest version (0.18.2).