Video shortcode outside WordPress not working with IE and mediaelement’s Flash fallback

I figured out the issue. I’m leaving the answer for future reference. Turns out IE needs you to include all the HTML tags for the video to load correctly when using flash. This is my working code now: <?php define(‘WP_USE_THEMES’, false); require(‘../wp-load.php’); echo ‘<!doctype html>’; echo ‘<html>’; echo ‘<head>’; echo ‘<meta charset=”utf-8″>’; echo ‘<title></title>’; echo … Read more

Referring to site URL in shortcode argument

To answer the heart of your question: no, WordPress does not have a way of referencing posts by ID/slug/etc. within the post content. In fact, probably the recommended way to do that is with a…shortcode! Even that wouldn’t help you in this case, though, since you can’t nest shortcodes without a plugin. So I’d recommend … Read more

WordPress Payment link will not transform PHP vars into values

If I understand correct this should work but as cybmeta said ask the support team of the theme/plugin. [insert_php]echo “https://www.pay.nl/payment/SL-9839-2480/3Lc2c5c/?amount_min=7497&extra1%5BCID%5d=” . $GLOBALS[‘user_id’] . “&extra2%5BNaam%5D=” . $GLOBALS[‘user_lastname’] . “&extra3%5BEmail%5D=” . $GLOBALS[‘user_email’][/insert_php]

Pull in excerpt with shortcode

If you have a look at how [dj-widget] shortcode is handled you will get an idea of how to implement plugin authors’ idea of showing post description. if($show_desc) { $desc_string = station_shorten_string(strip_tags($show->post_content), 20); $output .= ‘<span class=”on-air-show-desc”>’.$desc_string.'</span>’; } insert this between $output .= ‘<li>…’ and $output .= ‘</li>’; Please NOTE: There might be a better … Read more

WordPress plugin shortcodes not outputting anything

wp_remote_get doesn’t return a string, it returns an array, and if we refer to the documentation: $response = wp_remote_get( ‘http://www.example.com/index.html’ ); if( is_array($response) ) { $header = $response[‘headers’]; // array of http header lines $body = $response[‘body’]; // use the content } Here $response would not be a json string, but an array containing the … Read more

php in a shortcode

First, get_footer() is meant to load page level template files, not post-level ones. You should be using get_template_part() instead. Shortcodes execute as a filter on the_content. Per the norms of all filters, they should return content, not echo it. echoing content will cause effects like you are seeing. Apparently, the template file you are loading … Read more

Custom shortcode is not working inside tabs

As the article shows, ob_start and ob_get_clean can capture typical loop output and return as a variable. When you’re in the loop you might want to make sure the_content renders it’s shortcode as well. function do_livecasinoss_shortcode($atts, $content = “”) { // start the buffer ob_start(); $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)