next and previous year month and day for archive page

thank u all i just did a simple code to get what i want <?php $prevyear = date(‘2150’) – 0001; $nextyear = date(‘2150′) + 0001; $prevmonth = date(’01’) – 01; $nextmonth = date(’01’) + 01; echo echo get_year_link($prevyear).”<br />”.get_year_link($nextyear).”<br />”.get_year_link($prevmonth).”<br />”.get_year_link($nextmonth).”<br />”; ?>

Filter post by clickable year [duplicate]

You can achieve this by Using Simple Yearly Archive Plugin. It allows you to use different shortcode based on your requirements. For custom post type you can use like: [SimpleYearlyArchive type=”yearly_past”] Plugin link: https://wordpress.org/plugins/simple-yearly-archive/

How can I get this request to use the Custom Post Type page template instead?

Switch the taxonomy.php just like you would the single.php to support specific post custom templates. This is untested code, so it may not work – but, first get the post type $post_type = get_query_var(‘post_type’); So if $post_type contains post_type=”car” then include archive-car.php like this: if ( $post_type=”car” ) get_template_part(‘archive-car’); elseif ( $post_type=”boat” ) get_template_part(‘archive-boat’); elseif … Read more

permalinks issue and archives

Now the question is why does WP only put the word “date” in when the permalink is “/%post_id%/%postname%/”? Because the WP_Rewrite class method get_date_permastruct only looks specifically for a clash between %date% and %post_id% tags. To get this date structure with other numeric-based post permalink structures, you can manipulate the date structure directly: function wpa57228_date_structure() … Read more

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