started working on single, translations, docs
This commit is contained in:
@@ -226,10 +226,10 @@ function dis_2019_order_events_by_date(&$query)
|
||||
function register_dis_menu()
|
||||
{
|
||||
register_nav_menus(array( // Using array to specify more menus if needed
|
||||
'main-left-menu' => __('Főmenü bal oldal', 'dis2019'), // Main Navigation
|
||||
'main-right-menu' => __('Főmenü jobb oldal', 'dis2019'), // Extra Navigation if needed (duplicate as many as you need!)
|
||||
'main-left-menu' => __('Main menu left', 'dis2019'), // Main Navigation
|
||||
'main-right-menu' => __('Main menu right', 'dis2019'), // Extra Navigation if needed (duplicate as many as you need!)
|
||||
// 'sidebar-menu' => __('Sidebar Menu', 'dis2019'), // Sidebar Navigation
|
||||
'tag-menu' => __('BE DO THINK LOVE', 'dis2019'), // bedo circle
|
||||
'tag-menu' => __('Circular tags', 'dis2019'), // bedo circle
|
||||
//'main-right-menu' => __('Header Right Menu', 'dis2019'), // Extra Navigation if needed (duplicate as many as you need!)
|
||||
));
|
||||
}
|
||||
@@ -554,7 +554,7 @@ add_action('wp_print_scripts', 'dis2019_conditional_scripts'); // Add Conditiona
|
||||
add_action('get_header', 'enable_threaded_comments'); // Enable Threaded Comments
|
||||
add_action('wp_enqueue_scripts', 'dis2019_styles'); // Add Theme Stylesheet
|
||||
add_action('init', 'register_dis_menu'); // Add dis-2019 Menu
|
||||
add_action('init', 'create_post_type_dis'); // Add our dis-2019 Custom Post Type
|
||||
//add_action('init', 'create_post_type_dis'); // Add our dis-2019 Custom Post Type
|
||||
add_action('widgets_init', 'my_remove_recent_comments_style'); // Remove inline Recent Comment Styles from wp_head()
|
||||
add_action('init', 'diswp_pagination'); // Add our HTML5 Pagination
|
||||
|
||||
@@ -691,4 +691,32 @@ function dis2019_register_taxonomy_format()
|
||||
}
|
||||
add_action('init', 'dis2019_register_taxonomy_format');
|
||||
|
||||
function dis2019_register_taxonomy_author()
|
||||
{
|
||||
$labels = [
|
||||
'name' => _x('Author', 'taxonomy general name'),
|
||||
'singular_name' => _x('Author', 'taxonomy singular name'),
|
||||
'search_items' => __('Search Authors'),
|
||||
'all_items' => __('All Authors'),
|
||||
'parent_item' => __('Parent Author'),
|
||||
'parent_item_colon' => __('Parent Author:'),
|
||||
'edit_item' => __('Edit Author'),
|
||||
'update_item' => __('Update Author'),
|
||||
'add_new_item' => __('Add New Author'),
|
||||
'new_item_name' => __('New Author Name'),
|
||||
'menu_name' => __('Authors'),
|
||||
];
|
||||
$args = [
|
||||
'hierarchical' => false, // make it hierarchical (like categories)
|
||||
'labels' => $labels,
|
||||
'show_ui' => true,
|
||||
'show_admin_column' => true,
|
||||
'query_var' => true,
|
||||
'rewrite' => ['slug' => 'Author'],
|
||||
'show_in_rest' => true,
|
||||
];
|
||||
register_taxonomy('Author', ['post'], $args);
|
||||
}
|
||||
add_action('init', 'dis2019_register_taxonomy_author');
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user