stephenharris / Event-Organiser

WordPress plug-in, Event Organiser, development repository
http://wordpress.org/extend/plugins/event-organiser/
GNU General Public License v3.0
99 stars 76 forks source link

Internal link search for events not working in Gutenberg #469

Open LazyDevStudio opened 5 years ago

LazyDevStudio commented 5 years ago

Events cannot be linked from other posts using Gutenberg because "show_in_rest" is not set to true when registering the events CPT. If set to true in event-organiser-cpt.php, it works. Please included this with the next update. See here: https://github.com/WordPress/gutenberg/issues/9131#issuecomment-414385913

stephenharris commented 5 years ago

Hi @krays ,

I will probably enable this by default from the next major version. You can however, use the eventorganiser_event_properties filter to enable this in the mean time.

LazyDevStudio commented 5 years ago

That' great :-) . Event categories need this too to actually show in the sidebar in wp 5.2.3 with the Gutenberg editor activated. Can I use the same filter for this?

stephenharris commented 5 years ago

Not that filter, but there are other filters for each of the taxonomies (e.g. eventorganiser_register_taxonomy_event-category)