How to use get_categories() with Event Organiser plugin

Event categories are terms in a custom taxonomy, ‘event-category’, so you should use get_terms instead: //Args for which terms to retrieve $args = array(‘type’=> ‘post’, ‘order’ => ‘ASC’, ‘hide_empty’ => 1 ); //Array of taxonomies from which to collect the terms $taxonomies = array(‘event-category’); //Get the terms $terms = get_terms( $taxonomies, $args); //loop through the … Read more

How to list events by category and month with plugin Event Organiser?

You can use the plug-in provided function eo_get_events(). This is essentially a wrapper for get_posts(), and so is intended for ‘secondary’ loops. The plug-in specific arguments can also be given to a WP_Query object – in case you wanted to modify the main loop. (Related: When to use WP_query(), query_posts() and pre_get_posts ) $events = … Read more

Using customised language file for Event Organiser plugin?

Put your language files to a place where they are not overwritten. Then change the path to your custom language files on ‘load_textdomain_mofile’. Pseudo-code, you have to change the path and the text domain: add_filter( ‘load_textdomain_mofile’, ‘wpse_63643_custom_eo_lang’, 10, 2 ); function wpse_63643_custom_eo_lang( $mofile, $domain ) { if ( ‘eventorganiser’ === $domain ) { remove_filter( current_filter(), … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)