Date-based archive URLs to match my /2023/Jun/13 permalink structure?
Date-based archive URLs to match my /2023/Jun/13 permalink structure?
Date-based archive URLs to match my /2023/Jun/13 permalink structure?
WordPress Custom Post Type Archive, filter by category and get pagination working
You’re using an invalid Content-Type header. x-www-form-urlencoded isn’t a valid content-type. The correct content type is application/x-www-form-urlencoded. Essentially, the web server doesn’t know how to handle the content type you’re giving it to parse the parameters. This is why the request is failing with a 400 because WP is not getting anything in the POST … Read more
All the items under your “What I want” list can be easily achieved using the Posts List block which is a variation of the Query Loop block, and if you want to, you can create your very own variation – see Extending the Query Loop block in the block editor handbook. You can check the … Read more
The argument isn’t category, it is cat. Your query fails because you are using an argument that doesn’t exist. $args = array( ‘post_type’ => ‘post’ , ‘orderby’ => ‘date’ , ‘order’ => ‘DESC’ , ‘posts_per_page’ => 6, ‘cat’ => ‘3’, ‘paged’ => get_query_var(‘paged’), ‘post_parent’ => $parent ); $q = new WP_Query($args); if ( $q->have_posts() ) … Read more
Display posts on category archive organized into subcategories?
As for what you asked: If I have domain.com/something/{$variable} how do I retrieve that $variable In your case, you would want to do these: Add that variable to the public query variables which are automatically parsed by WordPress, e.g. from the URL of the current page. Add a custom rewrite rule which will let WordPress … Read more
author archives, showing all custom post types, problem on pagination
Create an archive page by combining two post type
Separate archive template to show posts and CPT by same category/taxonomy