Get URL Param Plugin and Inserting Result in Widget Code

I think the underlying issue here is that shortcodes are not evaluated when placed inside HTML attributes. You could modify the template and output the necessary HTML using PHP and do_shortcode( ‘[urlparam param=”Book” /]’) as an alternative approach: <!– Calendly inline widget begin –> <div class=”calendly-inline-widget” data-url=”<?php echo do_shortcode( ‘[urlparam param=”Book” /]’ ); ?>” style=”min-width:320px;height:580px;”></div> … Read more

Shortcode based chart plugin

I think you need a customized plugin to realize this. What chart engine will you use? You probably have to create a new function in function.php. I recently realized a Google chart plugin to show data in a graph. Maybe this topic will help you: Dynamic data in `wp_register_script` needed

How do I debug a short code?

From reading this guide, could you try using a variable to output the return as such? $output=”This is the return”; return $output; Also, if you’re calling the shortcode with do_shortcode(‘[michael]’); in a php file, you’ll need to echo this, like so: <?php echo do_shortcode(‘[michael]’); ?>

Duplicating Table of Contents for Paginated Post

You split post content into multiple pages with <!–nextpage–>, so you can use $page_number = get_query_var( ‘page’ ) to get current page number and global variable $numpages to get the number of pages in current post. Displaying table of content: global $numpages; $post_link = get_permalink(); $page_number = get_query_var( ‘page’ ); $toc = [ 1=>’Introduction’, ‘I2C … Read more

Passing a nested shortcode as an argument of another shortcode?

A partial solution I’ve found so far is to escape the brackets in the initial call, then replace the escaped characters in the do_foo_shortcode function. function do_foo_shortcode($atts, $content = null) { extract(shortcode_atts(array( ‘bar’ => ”, ), $atts, ‘foo’)); $bar = str_replace(“&#091;”, “[“, $bar); $bar = str_replace(“&#093;”, “]”, $bar); $bar = do_shortcode($bar); $content = do_shortcode($content); return … Read more