Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is that the WP YouTube player plugin does not use regular WordPress Shortcodes, but its own custom implementation. Those do then not work in tables, out of the box.
    We could make them work with a single extra line of code, but I’d actually propose a different way:
    The new WordPress 3.6 has support for embedding videos built-in. So, I suggest that you update to WordPress 3.6, deactivate/uninstall the WP YouTube Player plugin and change the Shortcode to

    [embed]http://www.youtube.com/watch?v=pabGBl72zPI&feature=youtu.be&autoplay=1[/embed]

    That will also embed the video nicely.
    (If you’d rather keep using WP YouTube Player, just let me know, and I’ll find the necessary code.)

    Regards,
    Tobias

    Thread Starter BSettles

    (@bsettles)

    WP was uprated to 3.6 and the WP YouTube Player plugin was deactivated. Changed the shortcut code to the embedded code you gave me and integrated it into the TablePress plugin. The video is still not playing. Tried it in IE, Firefox, Chrome and Safari

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, that’s strange. Could you please embed the Shortcode into the page (outside of the table) to see if the Shortcode/video itself works?

    Regards,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi again,

    I just dove into the WordPress core code again, and it looks like that WordPress Shortcode is “special”, and requires some extra handling unfortunately.
    So, please add this to the “functions.php” of your theme

    add_filter( 'tablepress_cell_content', array($GLOBALS['wp_embed'], 'shortcode' ) );

    That will add support for this Shortcode in table cells.

    Regards,
    Tobias

    Thread Starter BSettles

    (@bsettles)

    I added

    “add_filter( ‘tablepress_cell_content’, array($GLOBALS[‘wp_embed’], ‘shortcode’ ) );”

    to the bottom of the functions.php page and it is still not working.

    When I use the embed function without the tablepress plugin the video will run.

    I added */ to the end of the

    “add_filter( ‘tablepress_cell_content’, array($GLOBALS[‘wp_embed’], ‘shortcode’ ) );”

    and the table finally showed up but the video is still not playing

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that */ part confuses me… That should not be necessary.

    If possible, I’d like to take a direct look at this on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!

    Regards,
    Tobias

    Thread Starter BSettles

    (@bsettles)

    Let me try something else before I give you access to my webpage. How I can give you the admin login. I am not about to post it here.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure! As suggested above, you can send it to me via email, to the address in the “tablepress.php” file.

    Regards,
    Tobias

    Thread Starter BSettles

    (@bsettles)

    check your inbox.

    Thread Starter BSettles

    (@bsettles)

    Test2 for the video is located under the pages.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I’m in email conversation with BSettles, so that this thread can be resolved for now.

    @bsettles: I forgot one thing in my last email: If I don’t find a solution, don’t forget to remove that code again from the functions.php.

    Regards,
    Tobias

    Hi Tobias

    I seem to have the same issue as this person where I cant embed videos into TablePress. I have tried your code that’s mentioned above but had no joy. I’ve tried so many ways but just cant seem to insert video at all!

    I really like this plugin and don’t want to go for another table/column plugin just to put videos in. I have JW Player which displays as a white box but no video.

    I tried putting that shortcode you mentioned in the theme php file but that didn’t make any difference!

    I’m really stuck here and would really appreciate and value your response.

    Many thanks and Great Plugin! 🙂

    Amr

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Did you try the new [video] Shortcode that WordPress offers instead of the JW player?

    Regards,
    Tobias

    Hi Tobias

    Thanks so much for your response. No I haven’t as I haven’t heard of it! Where do I get that from? And will it allow videos to embed in there? That would be awesome!! Please let me know where I can get this shortcode..

    Many thanks and regards
    Amr

    Hi Tobias..

    I just realised I just asked a stupid question! Sorry for that!

    My question should be like this: How do I use the shortcode? I mean, I saw on the WP site with regards to the new shortcode, by putting the link or filename of the video after the [video]. Does this mean the videos have to be uploaded to WP or I can link it to Youtube, Vimeo, etc.?

    Sorry I’m in a learning curve here..
    Many thanks for your efforts and support.

    Amr

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘WP YouTube Player not working with TablePress’ is closed to new replies.