Tag Info

New answers tagged

0

Your best bet is to modify your IBP theme to bootstrap WordPress, and display the header and footer, you can do this by following this Codex article here. This will load the WordPress environment and allow you to use WordPress functions: <?php /* Short and sweet */ define('WP_USE_THEMES', false); require('./wp-blog-header.php'); ?> Modify the ...


0

This is my solution in functions.php function embed_responsive_autoplay($code){ if(strpos($code, 'youtu.be') !== false || strpos($code, 'youtube.com') !== false){ $return = preg_replace('@embed/([^"&]*)@', 'embed/$1&showinfo=0&autoplay=1', $code); return '<div class="embed-container">' . $return . '</div>'; } ...


0

It depends on how you want the pdfs added but this should probably be a cover all: function embed_pdf_files( $atts, $content = null ){ //add default attributes here. $defaults = array( //'width' => '100%', //'height' => '1000' ); //This overwrites defaults with the attributes in shortcode $a = shortcode_atts( ...


-3

Just use the Jetpack plugin. In Settings activate the "Shortcode Embeds" function.



Top 50 recent answers are included