php - How to display archive from one saturday next saturday range,Wordpress -


In my WordPress home page, I am displaying archives using the function

  Wp_get_archives ('type = weekly and format = html')  

and like this output

  * July 1, 2010-July 25, 2010 * 12 July 2010 - July 18, 2010  

i.e. from Monday to next Monday. How can I change it from Saturday to next Saturday

on the start_of_week option Depending on which you can set under Settings > General Start of Week If you do not want to change it, you can Can stop the call for something different.

  add_filter ('pre_option_start_of_week', 'start_once_on_saturday'); Function start_once_on_saturday () {// Make sure we only remove _filter ('pre_option_start_of_week', 'start_once_on_saturday'); Return 6; } Wp_get_archives ('type = weekly and format = html');  

Comments