Forums
-
- Forum
- Posts
-
- Installation
- 28,527
- Troubleshooting
- 62,949
- Themes
- 10,453
- Plugins
- 15,405
- Requests & Feedback
- 15,041
- Showcase
- 3,250
-
The database query I think should be
$comments = $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_parent=$post_id AND post_type = ‘reply’ ORDER BY post_date_gmt DESC LIMIT $number”);
(querying wp_posts, matching post_parent with post id, and post_types reploy)
But how can I echo this $comments variable correctly?
Its not working…
Please help me, I know I’m on the right track but need assistance from an expert.