Due to get_oembed_response_data() expecting Post Status to be ‘publish’ at all times, this can cause some invalid oEmbeds to be generated for passed Events.
wp_oembed_add_discovery_links() gets output on each Singluar template to generate the relevant oEmbed Discovery Links. However, navigating to these will result in an “oembed_invalid_url” error for passed Events.
I was able to get around this with the following, but it could be a good addition to the plugin.
add_filter( 'oembed_request_post_id', function( $post_id, $request_url ) {
if ( get_post_type( $post_id ) == 'event' ) {
add_filter( 'get_post_status', 'fake_post_status_for_events_oembed', 10, 2 );
}
return $post_id;
}, 10, 2 );
function fake_post_status_for_events_oembed( $post_status, $post ) {
if ( in_array( $post_status, array( 'passed', 'hidden' ) ) ) {
return 'publish';
}
return $post_status;
}
]]>
Hello, I can see the calendar on mysite.com/events but there is not such a page in my page directory. Does anyone know where the plugin stores this page?
]]>There is a bug in list-table-week.php which causes an all-day event to show up on the weekly calendar incorrectly.
On line 147:
$end_cell = ( $end_day * $start_day ) + $offset;
should be
$end_cell = ( $end_day – $start_day ) + $offset;
]]>Thanks for this plugin.
Question:
Now is the date stored as ( YYYY-MM-DD [HH:MM:SS] ).
I want to display it anywhere in a loop like (DD-MM) or (HH:MM).
Is there a way to store this “in other order” without editing the plugin?
Or could you add that option?
Thanks in advance.
(sorry for bad english)
Hi John
So your screenshot section shows an option for repeating events to repeat until a specific date (eg https://ps.w.org/wp-event-calendar/assets/screenshot-3.png?rev=1534003). I have the latest 1.1.0 installed here and the user interface doesn’t offer that. In fact it’s laid out differently – see https://imgur.com/a/jV3ow
Is this new functionality that you’re writing & got a little trigger-happy on, or was it removed, or am I doing something wrong?
Thanks
Jon
]]>It would be really useful to create multiple calendars and have the ability to add each one independently via a shortcode to the front-end of a site. I realize that a shortcode currently does not exist for this plugin, but maybe one day?
]]>Hello,
I have successfully installed the plugin and created events for the calendar. However, I cannot find any instructions on how to present the calendar on my site. Is there a shortcode?
Thank you for your timely reply.
]]>With version 0.2.3 some things were changed in the way capabilities are handled, the map_meta_cap in the register_post_type function was added and set to true
https://github.com/stuttter/wp-event-calendar/commit/f2c3f1c44bfca130be29c8407f41ee1ab8b7a44f
This causes the plugin to stop function, since an Administrator cannot create an event anymore. If I remove the map_meta_cap = true or if I use a capabilities plugin like Members and manually map the event capabilities to the role I have, it works again.
]]>To whom it may concern:
Website URL: https://www.blackmarlinrestaurant.com
Our website was migrated from one hosting service to another, and one the site migrated, the calendar does not work. I tried to (a) deactivate/reactivate, (b) backup the plugin directory to my computer and delete the plugin folder and reacquire the plugin.
Things are not working, and I cannot tell if the events which were on the site are there anymore. We had over 300 events in the system before the migration.
If you click on the Entertainment “tab” you can see that nothing displays correctly.
I would greatly appreciate your assistance as I am pretty new to WordPress and inherited this restaurant site from another company.
David Hexem
[email protected]
cell 951 642 8019
Are there plans for BP groups integration?
]]>Is this possible?
Typically, if I needed to get events from the future, where the event date was post meta, I would use a meta query like so:
'meta_query' => array(
array(
'key' => '{meta_field}',
'value' => date( 'Y-m-d', time() ),
'compare' => '>',
'type' => 'DATE',
),
),
The thing is, according to the codex:
The ‘type’ DATE works with the ‘compare’ value BETWEEN only if the date is stored at the format YYYY-MM-DD and tested with this format.
So, is there any a preferred way you know of to perform a query to get your events that appear in the future?
]]>Hi,
Let me say this looks like a great plugin! At least in admin ?? I can not seem to find a way the plugin offers to display the events on front-end of the website.
And indeed, when I’ve dug into the code, I’ve found
'exclude_from_search' => true, 'publicly_queryable' => false,
which only confirms my presumption as the custom post type isn’t made public.
So, my question is whether there is any way to display the events calendar on front-end of the website? A widget, or a shortcode?
If not, is there any way to filter the $args
for register_post_type( 'event', $args );
?
Or is this meant purely for admin view?
Thank you!
Regards,
Oliver
]]>