Within a custom select query
-
Hello!
Thanks for this very helpful plugin. I really do appreciate it.
I have a question about using the_author_image() within a custom select query. In my standard loops I have no problem using this, however within any of my loops that use a custom select query I can’t get the author image to appear.
My query looks like this:
SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'Featured' AND wpostmeta.meta_value = 'Blog' AND wposts.post_status = 'publish' AND wposts.post_type = 'post' ORDER BY wposts.post_date DESC LIMIT 1
Thanks again!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Within a custom select query’ is closed to new replies.