Using $paged redirects /page/2 to page 1
I’ve setup a custom query for my posts (single.php) with pagination, which by the way is working great with the default permalink structure. … Read more
I’ve setup a custom query for my posts (single.php) with pagination, which by the way is working great with the default permalink structure. … Read more
I use paged and threaded comments with: 10 comments per page the last comment page first the newest comments first If there are … Read more
I’ve got a CPT called Service registered as following: $args = array( ‘public’ => true, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘has_archive’ => … Read more
after hours and dozen of tests and messes… i’m face to the wall and fed up searching (mainly cuz my google’s answers are … Read more
I am trying to change pages when I search by category on my website. When I am not searching under a certain category … Read more
I merged two WP_Queries with the code below, it has pagination setup as well as posts per page in the final combined object … Read more
I know how to keep track on the ‘index’ of the current post when running the loop using $wp_query->current_post Bu this restarts the … Read more
There doesn’t seem to be a standard technique for differentiating first/top posts. After looking around, I found this method: $current_query = new WP_Query(‘post_type=current&post_status=publish’); … Read more
The home page of my site is set to show the 9 latest posts (via the setting in the admin area), and then … Read more
I set up this rule (in functions.php) function custom_rewrite_basic() { add_rewrite_rule( ‘episode/([^/]+)/transcript’, ‘index.php?post_type=episodes&episodes=$matches[1]&page=2’, ‘top’); } add_action(‘init’, ‘custom_rewrite_basic’); expecting it to redirect www.domain.com/episode/postname/2/ over … Read more