[buddypress-trac] [BuddyPress Trac] #6273: global $wp_embed not working on custom post type activity...

buddypress-trac noreply at wordpress.org
Mon Mar 2 19:00:11 UTC 2015


#6273: global $wp_embed not working on custom post type activity...
-------------------------------+------------------------------
 Reporter:  revolutionfrance   |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  high               |   Milestone:  Awaiting Review
Component:  API                |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by revolutionfrance):

 Hello, yes $videotest is a youtube url. The strange thing for me is that
 it works for normal posts, but not video custom post types. It seems like
 the iframe is being removed.

 Do I still need to use wp_embed_register_handler if I am using embeds
 already handled by wordpress?

 Yes, the custom post type activity is registered using the post types
 activities from 2.2. The code that I shared is from my entry.php file.

 Sorry for using the trac for this, but I'm just not sure where the bug is,
 since the exact same code works for posts, but not video CPT, can't seem
 to get to the root of it. Which way would you recommend to try to embed in
 entry.php?

 Funny we communicate in English although we're both French ;-)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6273#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list