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

Using ACF Custom Field value in a URL with do_shortcode() [closed]

Simply you need to replace the_field(‘video’) with get_field(‘video’). Why? Because according to ACF documentation; get_field($field_name, $post_id, $format_value) Returns the value of the specified field. Whereas on the other hand the_field($field_name, $post_id) Displays the value of the specified field. (this is the same as “echo get_field($field_name)”) Hope this might help others as well.

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