display category list year wise in wordpress

function extend_date_archives_add_rewrite_rules($wp_rewrite) { $rules = array(); $structures = array( $wp_rewrite->get_category_permastruct() . $wp_rewrite->get_date_permastruct(), $wp_rewrite->get_category_permastruct() . $wp_rewrite->get_month_permastruct(), $wp_rewrite->get_category_permastruct() . $wp_rewrite->get_year_permastruct(), ); foreach( $structures as $s ){ $rules += $wp_rewrite->generate_rewrite_rules($s); } $wp_rewrite->rules = $rules + $wp_rewrite->rules; } add_action(‘generate_rewrite_rules’, ‘extend_date_archives_add_rewrite_rules’); add this code to your functions.php check this url http://sltaylor.co.uk/blog/wordpress-category-archives-by-date/

add offset to archive page

I am not sure what exactly you are trying to do. Here is an example using offset. For a category the first post is being displayed and that can have a unique HTML structure/layout. Then the remaining posts are shown but the search omits the first results and it offset by one item. Does this … Read more

How can I create a new menu item that links to an archive of a custom post type?

After searching through the core WordPress files, I found the necessary arguments. The key is setting menu-item-object to be the slug of your post type and the menu-item-type to be post_type_archive. $args = [ ‘menu-item-position’ => $position, ‘menu-item-status’ => ‘publish’, ‘menu-item-parent-id’ => 0, ‘menu-item-object’ => ‘my-post-type’, ‘menu-item-type’ => ‘post_type_archive’ ]; wp_update_nav_menu_item($menuID, 0, $args);

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