For anyone that comes across this in the future, here is what I figured out:
$askavl_instagram_contact_title = get_post_meta(get_the_ID(), 'askavl_instagram_contact_title', true);
if(isset($askavl_instagram_contact_title) && $askavl_instagram_contact_title != "") :
$tag = str_replace("#","", ((string)$askavl_instagram_contact_title) );
$thumbsize = "220px";
$image_limit = "2";
$easyInstagramSC = "[easy-instagram limit={$image_limit} caption_hashtags=false caption_char_limit=0 author_text="" thumb_click='thickbox' time_text="" thumb_size={$thumbsize} tag='{$tag}']";
echo do_shortcode( $easyInstagramSC );
From what I can tell my error was in the concatenation. This is working, hoewever if someone knows a better solution I would like to improve this.
Related Posts:
- How to customise the output of the WP image gallery shortcode from a plugin?
- Custom media upload content for inserting custom post shortcode
- Checking if an attribute exists in a shortcode
- All shortcodes not working on custom theme
- enqueue script only if it is not already enqueue
- Shortcode output appears before post body [duplicate]
- How to parse nested shortcodes?
- How to call shortcode function directly and pass $atts
- How to pass multiple values in shortcode?
- change plugin shortcode function [closed]
- Dynamic HTML not displaying at respective place
- Plugin form unable to process
- Short code for Venues
- Frontend editing, Frontend user dashboard
- Can’t get custom posts of taxonomy to show
- Shortcode doesn’t work if I directly paste its function in a template file?
- May i Use ShortCode in Template?
- Pass variable to nested shortcode
- Getting RGBA colour from gutenberg colourpicker
- Add custom variable in Contact Form 7 mail body
- get shortcode value
- How to generate CSS from a shortcode within a plugin
- Storing Options in a Shortcode
- Prevent shortcode from being wrapped in tags
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- How can I create a custom shortcode that will return a custom post type by ID?
- Plugin Handle URL With Custom Theme
- How to put JQuery/Ajax inside shortcode?
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- Can someone please tell me what is wrong with my plugin?
- Trouble with editing template for “List category posts” plugin
- WordPress function not being called from jQuery method
- How to fix wrong attribute error for Visual Composer Grid Builder?
- Making a Template for a CPT created by a plugin
- Woocommerce Create custom product type with variations
- Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Creating shortcodes in plugin
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Use $_GET inside a shortcode print empty Array
- My plugin won’t return anything [closed]
- Render Modula Plugin Shortcode On Ajax Request
- Shortcode to update user meta
- Why shortcode always displayed after footer not in body
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Deactivate JS Script in Plugin Shortcode
- Where to find the code used to render a page that has a shortcode and a template defined?
- Shortcode not working after move wordpress website files
- Shortcode not getting replaced
- Use conditional logic for woocommerce variable product
- convert more tag to shortcode
- Plugin that provides the [edit] shortcode?
- Return multiple values in a shortcode attribute
- Add text to variable
- Shortcode Attributes to Return different $_POST
- How to change shortcode’s default theme?
- Is there a way to convert shortcodes to html content?
- Get param from shortcode in plugin function
- Loop returns the current page’s permalink and guid instead of the post in the loop
- Inserting shortcode in href – any ideas or workarounds?
- Load CSS files in header of Bones theme?
- How can I achieve this, using shortcodes
- Defining the value of a variable before a function?
- Elementor Pro display featured image on section -> style -> image using shortcode
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- How To Use do_shortcode with WooCommerce One Page Checkout
- How to get current cart values using WC_Shortcodes?
- How to check if short code is present in template?
- Shortcode show error while editing post
- Get Shortcode output to database for static post_content
- Issue Saving Posts That Contain Shortcode
- Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)
- Passing function into add_action always returns the first argument
- Defining constant in a plugin to use in another plugin
- How to use plugin’s shortcode in custom design? [closed]
- WP Plugin CSS not being applied to page
- How to add HTML to a template only when user is logged out/ not registered
- Passing variable from template file to the plugin file
- Multiple calling javascript from shortcode in one page
- How to pass value to a plugins shortcode?
- Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?
- Find all strings between an enclosing shortcode
- Hide some shortcodes on posts from back-end
- Trouble implementing python on WordPress
- Is there a function to search for a wildcard value when calling a shortcode?
- How to display single arbitrary facebook post with a shortcode?
- Multiple level shortcodes
- Custom shortcode with dynamic rewrite
- apply_filters to content but ignore shortcodes
- How to load a plugin when doing an Ajax call? [duplicate]
- Is it right way to create shortcode?
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- Trying to Understand Shortcodes.
- Creating Features List in WordPress Post
- Global Handle to Class unavailable in Plugin?
- I am experiencing difficulty fulfilling client request
- cURL External API request displays content above other content on page
- Beginner question: Accessing js script in plugin
- thumbnail_width not working in wordpress most popular post plugin
- Display file contents within Plugin