I would like to be able to query for a specific year and week using WP_Query argument notation. I am using this notation as I would like the page...
Im trying to pass a query var to a custom page template with pretty permalinks. So basically i have a page called “albums”. And i want to pass a...
I am trying to filter the Media Library so only media items that are uploaded by the current user OR children of the post being edited are visible. I’ve...
I am using the code below to query 5 WordPress sites for their posts, merging them into an array, sorting the array by date, and then displaying them: //SITE...
What I’m currently trying to make is an activities stream wich list : The posts, the comments, both mixed between them and ordered by date. My idea is to...
I have an array of ids in a specific order. I use post__in in my query to get posts from this array. I have some duplicate post IDs that...
I have a transient set for a custom query. It expires in 30 days. But I also need it to expire once a new post/page is published. So that...
I am trying to make custom filter for my woocommerce website. Everything is working fine in the shop page, but when I go to the archive page the filters...
I want to display X categories, and sort them by last update. I also want to grab the image of the latest post with the category. <img src="https://wordpress.stackexchange.com/questions/25860/<?php echo...
Each of my posts have a single custom field that is a string of a date (not the date of the post). Instead of my theme’s current query, which...