custom pagination problem
-
Hello,
I try to make a custom pagination work.
I put this in my functions.phpfunction pagination_april( $query ) {
if ( $query->monthnum=04&year=2005 ) {
$query = new WP_Query( ‘posts_per_page=1’ );
}
}add_action( ‘pre_get_posts’, ‘pagination_april’ );
But it won’t work.
Can anyone tell me what went wrong here.Roelof
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘custom pagination problem’ is closed to new replies.