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 add a shortcode button to the TinyMCE editor?
- How to include code only on specific pages?
- how to include other plugins css files in a shortcode?
- What characters are allowed as a shortcode tag and how should they be sanitized?
- Autogenerate wordpress shortcodes using array?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Cannot strip JW Player shortcode?
- append stylesheet via shortcode
- Shortcode under a Shortcode Multiple times Possible?
- How to list all active and specific shortcodes in wordpress
- do_shortcode() doesn’t work if shortcode contained in variable, works if shortcode passed as string
- how to show database content in wordpress post
- wp_specialchars and wp_specialchars_decode in a shortcode plugin
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- echo do_shortcode is not working on theme’s template
- Plugin shortcode won’t work on a custom template file [closed]
- shortcodes displaying outside of content area with echo statement, not what I wanted [duplicate]
- Adding json as params to shortcode
- Shortcode is not working in homepage page template (custom front page)
- Shortcode to generate and save password in a file
- How to get variables from fucntion.php to my plugin files
- Overriding Attributes values in Shortcode Plugins
- Demystifying and understanding shortcode nomenclature
- How to modify shortcode attributes with data from current post
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- Add htmlentities and/or shortcode into data-attributes
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Plugin echos text from shortcode function in gutenberg page editor
- Adding Shortcode to Text Widget
- wordpress prevent multiple shortcodes
- How to add an automatic refresh in WordPress for a Page/Post or an embedded OneDrive/Excel HTML Code?
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- accessing wp.media api from a tinymce plugin
- Visual Composer shortcode for child theme dir
- get_post_title is not working on homepage
- How to create a custom shortcode based on the layout?
- Unable to add TAB character to post?
- plugin shortcode output
- How do I apply style to each category of a list?
- What is @Action in WordPress?
- Where are theme codes located for WordPress?
- Anyway to convert a plugin to become a shortcode?
- How to have sample page for each new register users in a membership website
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- using do_shortcode
- Passing stored variables to add_filter
- Modify page title and subtitle with a plugin
- How to activate a plugin on the activation of a theme?
- Add Shortcode tag in Widget/Sidebar
- Flipping Book PHP Code? Any experience?
- WPTouch – how to remove shortcodes or make shortcodes function
- Custom shortcode for displaying user based on a role parameter
- WordPress Plugin Insert Html Code with Shortcode
- Get all the URLs of the pages that uses a specific shortcode
- shortcode – multiple instances of same parameter name in one shortcode instance
- Function call in wordpress short code handler fails
- Get Image Having the ID [closed]
- Add the_post_thumbnail_url to a shortcode in function.php
- Passing PHP Variables to AJAX Loaded Pages
- Echo out element to another page.
- how to check if a shortcode is used more than one time in the same post
- Adding a Tag Parameter / Filter to My Shortcode
- Rename Smart YouTube’s httpv back to http for all posts
- Help understanding dynamic endpoints based on where a shortcode is used
- How to use a shortcode or an application to dynamically embed content from one WordPress site to another?
- Managing and deleting transients with dynamically generated transient names
- Thumbnail image doesn’t show up in Shortcode output
- list of custom post by custom field in frontend
- get_post_meta shortcode returns empty field
- JS working when used normally but not in wordpress
- Make the product page as homepage WooCommerce
- WordPress Shortcodes – Return $Variable
- Shortcode function not showing up on mobile browser
- shortcodes not working [dt_carousel & [dt_fancy_image
- Get Current Post ID in WP Loop For GiveWP
- Shortcode generated widget to appear on same line as heading text and button
- Query Shortcode from a multisite to appear on a different site?
- wordpress Shortocode running twice?
- Shortcode in a blog post, footer and related products stop working
- Using “excerpt_more” filter for a specific post type
- Space in WordPress Attribute Causing Problems
- Shortcode registered from a plugin not recognized
- Strange get_the_* behavior with php 5.4
- Strip shortcode from excerpt [duplicate]
- Convert usernames listed by the Groups plugin shortcode to displayed names?
- Embedding BitBucket Code in Posting
- Next and Previous Pagination button not displaying in WordPress
- Do shortcodes affect page indexing by search engines?
- do_shortcodes() isn’t working
- How to show in front End images using Visual Composer attach_images?
- Shortcode to do math with url variables
- How can I get the permalink of a page on which shortcode has been used
- How to get URL param for pagination in shortcode?
- Buffered output in chunks and shortcode – how do I achieve that?
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]
- How to get next day date of a specific day