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

buddypress-trac noreply at wordpress.org
Mon Mar 2 13:59:03 UTC 2015


#6273: global $wp_embed not working on custom post type activity...
------------------------------+-------------------
 Reporter:  revolutionfrance  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  high              |  Milestone:  2.2.2
Component:  API               |    Version:
 Severity:  normal            |   Keywords:
------------------------------+-------------------
 Hello, I am not in any way an expert at bp, but I am trying to get youtube
 embeds to work on my video custom post type in buddypress activity. I use
 the following code in my entry.php file:

 {{{
 <?php
                  //oEmbed video
                  $videotest = get_post_meta( $blogpost_id, '_kleo_embed',
 true );


                 // oEmbed

                         global $wp_embed;
                         $post_embed =
 $wp_embed->run_shortcode('[embed]'.$videotest.'[/embed]');

                         echo $post_embed; ?>
 }}}

 This works with the activity of a normal post, but not of my video custom
 post type. Is this a buddypress bug?

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


More information about the buddypress-trac mailing list