2010-07-20 48 views

回答

0

這取決於start_of_week選項,您可以在下設置Sett 012>通用>本週開始。如果您不想更改此設置,則可以攔截撥打get_option的電話以返回不同的內容。

add_filter('pre_option_start_of_week', 'start_once_on_saturday'); 
function start_once_on_saturday() 
{ 
    // Make sure we only do this once 
    remove_filter('pre_option_start_of_week', 'start_once_on_saturday'); 
    return 6; 
} 
wp_get_archives('type=weekly&format=html'); 
相關問題