I have a custom post (it’s called “ait-dir-items”) and 2 categories there. On category archive […]
Tag: get-posts
get_posts – find out if querystring was crap and fallback is used
If we pass a String to functions like get_posts, and that string is not a […]
Advanced Custom Fields: Post Object – Not returning data
I have a custom post type called “Training” with an archive page (archive-training.php). I have […]
get_posts() doesn’t consider user permissions
I want to show a list of links to posts for the logged in user […]
What does setup_postdata ($post ) do?
The codex defines it as ‘Set up global post data. Helps to format custom query […]
Count posts returned by get_posts in external PHP script
I’m using WP from an external PHP script by including the wp-load.php file. All functions […]
AJAX pagination offset returns same post on adjacent pages
I have a simple AJAX pagination that seemed to work just fine, calling one WordPress […]
tax_query in get_posts() not working?
I’m trying to print out all the posts within every taxonomy for a custom post […]
Showing sticky posts with get_posts()
I’m using this to retrieve posts on my index page: <?php $posts = get_posts( “category=13&numberposts=2” […]
Show the title of the latest post by author
I have the following function which I use to show the author name,author avatar and […]
No More Posts Available.
No more pages to load.