Short code format for cat tagging when posting from email
I believe that is only a feature in wordpress.com blogs. You probably want to use a plugin like Postie to get the functionality you’re looking for.
I believe that is only a feature in wordpress.com blogs. You probably want to use a plugin like Postie to get the functionality you’re looking for.
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
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
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]
Duplicate short code duplicating some values only
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
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
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
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
shortcode_parse_atts Accepts a string of shortcode attributes and returns an associative array of key/value pairs. // UNABLE TO TEST THIS // $value = get_post_meta(get_the_ID(), ‘some_value’, true); // $sc = $value [ ‘item_ticket_tailor’ ][ 0 ]; // TEST DATA – assuming the data is a string $sc=”[custom_event id=”3106″ ][custom_ticket id=”3220″ show_price=”true”]”; // pad some elements for … Read more