Answered my own question on this one. As it turns out, it was pretty simple in WordPress 2.9.2. Basically, I applied a filter to ‘the_posts’ which would run another query if the object was empty. Because we’re looking up posts that haven’t been published, we need to use our own custom SQL as well. Trying to use the WP_Query object will, well, put you in an endless recursive loop.
Related Posts:
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Getting the post_id in wp_ajax function
- Replacing all attachment links in post with media file link
- Change the default number of posts to show on mobile version
- I am trying to create a simple frontend form for posting
- Post content being duplicated by the_content();
- How can I pass $post object to ‘save_post’ add_action?
- 1 column admin screen options – move submitdiv to bottom
- Single Post Navigation Within Each Category
- Add confirmation popup on “Move to Trash”
- How to get the latest posting time of archived pages in WordPress?
- Insert posts in two tables
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- custom wordpress post loop – hide iframe content
- Different template for posts of all subcategories of category
- Search for posts based on their url in the admin?
- Add custom field automatically (add_post_meta) with value based on number of words of article
- How to access featured image?
- Mark menu item as current-menu-item for category
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Post revisions disappeared (for some posts)
- Replace ‘published on date’ with ‘modified on date’ on Posts
- How to display category from recent posts?
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How do I restart my loop with get_next_post()?
- How do I use WP_Query to get a range of posts with custom fields that have numbers with letters in them?
- “Duplicate” Posts Appearing Since 3.1.2 Update
- Rename “post” to “article” throughout the admin back end [duplicate]
- Set size for attachments
- Setup a custom dynamic post
- How to make a price range slider from get_post_meta?
- One menu for frontpage (one pager), and a different menu for posts
- pagination for single post by category
- Adding an image to a non existing post
- How to create new post content templates for my users?
- Start post pagination at 0 instead of 1
- Excluding posts not working
- How to include my own css in post
- (solved) getting post author’s user role
- Block editors annoying warnings
- Add get_the_tags() to Single Posts section via functions.php
- Disable auto-save and post revisions from inside a theme or plugin
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- Refresh problem post is duplicated when page is submitted after page reload
- Migrate posts from category and sub-category via SQL
- Force fill all fields when creating a new post
- Posts Missing in Dashboard after update
- Display recent posts from portfolio
- How to get post with slug and exclude categories
- Auto update post title and slug when post status is changed
- How to make related post order by random?
- Accessing Post ID Within Loop
- Retrieving posts by their date and category
- WordPress displays post on subcategory only
- Update field in database for users
- wp-link-pages in header and footer of the post
- get last post’s link with SQL query
- Categories Listing and Highlighting current category item
- In admin panel, use a form to create a post?
- How to get the post id (of the parent custom custom type) in a loop inside a widget?
- Actions to use when flushing cache (when posts are added / deleted / modified)
- WP_Query get posts in custom database table [duplicate]
- How to save template data into wp_post table (post_content column)
- WP query taxonomy optimization
- can’t modify post title using the_posts filter
- Single Post Gallery Using Shortcode
- Author post count in category
- How to show only homepage in google results instead of privacy, contact pages
- Post count doesn’t match number of posts shown in list in admin
- Show post count in custom taxonomy page
- how let users select categories for posts in frontend?
- Unable to get all the Posts Attachments
- view a list of 3 future post, from the nearest to the most far
- Category URL to use same string as Post URL Permalink
- Why do some post, listed under the “Mine” Tab, and the same posts listed tunder “Published” Tab
- How to add content to the menu
- Printable Page with all Posts from Tag
- Multiple Custom Post Type loop logic
- WordPress search for specific Post Type
- Get the correct meta_value with get_post_meta
- Export Posts with specific custom fields by sql
- Gallery just showing plain short code like [gallery ids="240,236,275"]. how to solve this?
- Posts are being posted in two categories instead of 1
- How can I change the look of a post as is displayed
- How to Post to Specific Pages?
- Show related (archive) month and year to post
- associate posts to a page
- Sort by category and then date?
- save_post not working
- Password-protected Posts lead to 404 Error
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to get pagination working with “Pending” Posts
- How do I show the post title if an advanced custom field hasn’t been used?
- Post’s arent displaying
- Show with echo if a post has two or more categories
- Can I get custom post items in select box (dropdown)
- Undefined Function Fatal Error with Shortcode [closed]
- I have a website issue I am trying to resolve
- How to sort posts alphabetically based on a specific parent category