How to show customized activity for custom post types in buddypress activity loop?

You can filter on the action before it is saved by using add_filter on ‘bp_blogs_activity_new_comment_action’ as shown in bp-blogs-functions.php -> bp_blogs_record_comment() Or you can filter before the action is displayed by using add_filter on ‘bp_get_activity_action’ Probably better to do the former because you can easily check post->post_type to see if it is ‘business’. This shows … Read more

Post Submission from frontend with custom field isn’t working

Your code works fine for me as-is, assuming you actually have a video post type, however there are a couple of things you can correct- shortcodes should return their value, otherwise you will see shortcode content appear before any post content, not where you actually placed the shortcode. do_action(‘wp_insert_post’, ‘wp_insert_post’); is unnecessary, wp_insert_post already does … Read more

Use regular category with custom post types

Found this code, that makes it able to assign regular categories to custom types but now my importer doesnt assign them, but I think ill be able to fix this. add_action( ‘init’, ‘wpse6098_init’, 100 ); // 100 so the post type has been registered function wpse6098_init() { register_taxonomy_for_object_type( ‘category’, ‘product’ ); }

Displaying media for custom post type

the_post_thumbnail() echoes the full image tag including src, you’re using it within your own image tag. If you want just the thumbnail src to use within your own tag, use wp_get_attachment_image_src instead. also- unrelated, use the_title_attribute for alt and title attributes within tags instead of the_title. EDIT- using wp_get_attachment_image_src: <?php $image_attributes = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ … Read more