Output of scheduled records


Entries that have the status “Scheduled” are not displayed on the pages of your site, but there are times when it is necessary. For example, to create a calendar on your site – our little hack for solving the problem:

function custom_archive_query($query) {
	if ( $query->is_archive() )
	{
	$query->set( 'post_status', array('future', 'publish') );
	}
	return $query;
}
add_filter( 'pre_get_posts', 'custom_archive_query' );


Требуется подобная доработка? Напишите нам.


Name

Email


Website


Messagge