Skip to:

Recent Blog Posts widget problem

  • Mike Pratt


    In bp_blogs_widget_recent_posts, I wanted to mod the look a tad and show the category(s) the post had. bp_post_category filled the bill nicely but kept returning the same category for every post (they are all in diff categories verified in db. The below var dump shows that the post category is string(1) "0" which is what it says for every blog post entry listed. Every other var looks correct and the user, title, excerpts all pull and display correctly but the categories all come up “0” Thoughts?

    var dump of one of the posts:

    [“post_title”]=> string(9) “My Apathy” [“post_category”]=> string(1) “0” [“post_excerpt”]=> string(0) “” [“post_status”]=> string(7) “publish” [“comment_status”]=> string(4) “open” [“ping_status”]=> string(4) “open” [“post_password”]=> string(0) “” [“post_name”]=> string(9) “my-apathy” [“to_ping”]=> string(0) “” [“pinged”]=> string(0) “” [“post_modified”]=> string(19) “2009-01-05 14:41:15” [“post_modified_gmt”]=> string(19) “2009-01-05 20:41:15” [“post_content_filtered”]=> string(0) “” [“post_parent”]=> string(1) “0” [“guid”]=> string(27) “” [“menu_order”]=> string(1) “0” [“post_type”]=> string(4) “post” [“post_mime_type”]=> string(0) “” [“comment_count”]=> string(1) “1” [“blog_id”]=> string(1) “1” }

  • The topic ‘Recent Blog Posts widget problem’ is closed to new replies.
Skip to toolbar