Opened 3 months ago
Last modified 3 months ago
#4835 new defect (bug)
Latest Post in Blogs Directory
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | Future Release |
| Component: | Blogs | Version: | 1.7 |
| Severity: | trivial | Keywords: | needs-patch |
| Cc: |
Description
Latest post for blogs directory:
$paged_blogs[$i]->latest_post = $wpdb->get_row( "SELECT ID, post_content, post_title, post_excerpt, guid FROM {$blog_prefix}posts WHERE post_status = 'publish' AND post_type = 'post' AND id != 1 ORDER BY id DESC LIMIT 1" );
Hardcoding post_type = 'post' is just wrong. Basically we cant show custom post types in there. Why not use {$blog_prefix}bp_activity table?
Change History (2)
comment:1
unsalkorkmaz — 3 months ago
comment:2
boonebgorges — 3 months ago
- Component changed from Core to Blogs
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
- Priority changed from normal to lowest
- Severity changed from major to trivial
This is a good enhancement request. For the moment, you can filter 'bp_get_blog_latest_post' and provide whatever value you want.
Note: See
TracTickets for help on using
tickets.

Or.. just remove post_type = 'post' because post_status = 'publish' is enough for eliminating attachments because their post_status is inherit.
Update: nvm this one. nav menu items are coming too.