Forums
-
- Forum
- Posts
-
- Installation
- 28,097
- Troubleshooting
- 61,382
- Themes
- 10,273
- Plugins
- 15,152
- Requests & Feedback
- 14,751
- Showcase
- 3,251
-
Hey guys! I can’t make $result->topic_poster_name work in my 0.9.0.4 instalation.
Is this the right function for this version?
// REPLIES
$query_replies="SELECT * FROM bb_posts WHERE topic_id=$topic_id AND post_id != $first_reply_id AND post_status=0 ORDER BY post_time DESC";
$results_replies=$wpdb->get_results($query_replies);
$replies_text = "";
foreach ($results_replies as $result) {
echo $result->post_text;
echo $result->topic_poster_name;
}
The post_text works perfectly, but the poster_name returns me nothing. Any idea?
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS