Don’t use double quotes (“) inside the shortcode, since you are using double quotes to specify the href attribute. The browser thinks your href text ends at position=
.
Use single quotes instead: href="https://wordpress.stackexchange.com/reservation/?unitrate=[print_csv position="5']&...
I agree with the comments that there is a better way to do this, but I provide a potential answer anyway so you can avoid this in the future.
Related Posts:
- Retrieve multiple values passed to a single attribute in a shortcode
- Display a text message if the shortcode is not found?
- Loading page template into shortcode
- My shortcode is showing up twice
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- Making Quote Plugin more efficient
- custom shortcode will not display the wrapped content
- Append HTML Using Shortcode
- Plugin CSS not enqueing
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- WordPress shortcode returns the data before
- Action Hook Inside WordPress Plugin Shortcode
- What is the difference between Null vs Empty (Zero Length) string?
- How to Create custom block for displaying information in content section which act like shortcode
- Display a custom name when the user has no name settle in his account
- overwrite wordpress gallery with custom gallery shortcode
- How to return html as a string from php for WordPress
- Shortcode Works for Logged in Users but Not Working for Guest
- WP Custom tables query
- Custom plugin with shortcode not working
- How to create shortcodes that pull custom field data from general settings
- How to use a frontend URL with a Plugin
- the_title() & the_content() are retrieving Post details inside a Page, after calling a shortcode
- Get list of shortcodes from content
- Audio tags around Mp3 URL in content
- WordPress template_include filter not working properly
- Wrap each shortcode in array to div
- “The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working
- How to display a value from a radio button in the options menu in wordpress
- Put php variable in shortcode
- How do I add text in a shortcode?
- Template part inside shortcode, unexpected reult
- How to call function at the bottom of post using plugin?
- Shortcode API: How to get name that matched shortcode RegEx?
- Shortcode content filter?
- WP add_action factory
- Swapping wp_dropdown_categories function with wp_category_checklist
- How to show phpinfo() only in a new tab?
- How can I remove a function that has been added to wordpress with add_filter?
- How to use $_GET function WordPress backend
- Custom shortcode outputs plain text instead of HTML at top of post
- Extend PHP regex to cover “srcset” and “style” attributes
- How can I hide that I Use WordPress (with W3 Total Cache)
- Saving plugin settings – ERROR: options page not found
- class_exists returns different values [closed]
- Embedding PHP in shortcode $content
- Shortcode with PHP issue “Undefined index”
- Custom array from a query only write the last row of the query
- Is There A Way To Make Theme Files Accept Shortcodes?
- Create a WordPress shortcode using PHP [duplicate]
- Unable to process php via shortcode
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- calling a custom field value inside functions.php
- Using ob_start and ob_get_clean with wordpress shortcode
- Custom meta box values are not getting saved for my custom post type
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- Validate and Sanitize WP REST API Request using WP JSON Schema?
- Cant display an image via PHP in wordpress
- Can I remove or edit an include() from a function with a filter?
- Call to undefined function error in plugin
- How do I make this Metabox show current DB value?
- Get category id when SEO URL is turned on
- how to get sentence values from wordpress shortcode parameter?
- Using ACF Relationship field to set post type to draft or published status
- How to extend SelectControl with data from my theme
- How can i avoid duplicate same post in wp?
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- How do I disable cache for a certain page?
- How can I edit the final HTML structure of the whole web page
- I am having an issue with this shortcode plugin.. Warning: Illegal string offset ‘title’
- How to check if plugin update process completed in wordpress?
- using filter and hook inside class
- How can I create a shortcode from an html and php code written together
- CPT in a shortcode
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Priority call methods – PHPMailer->addAddress(NULL)
- How to properly escape in ternary operators – Wp Coding Standards?
- Add Admin Option w/ Anonymous Function
- WordPress Shortcode based on other shortcode
- How to send logs to plugin owner for a plugin?
- Force ‘permanent’ post cache of shortcode results
- Wrapping shortcode content in a span or link
- Force CSV download with template_redirect
- How to use foreach and if statement within array of arrays?
- Use html tags in shortcode_atts, is it real?
- How to have Function of a plugin using global vars into a shortcode?
- Where to place PHP for shortcodes
- How to wrap a text with shortcode into php file?
- PHP Widget and do_shortcode
- Shortcode not passing variable to included file
- How to edit the default database of WordPress [closed]
- Cookie not created in AJAX request
- Display Current Time using shortcode
- How to create shortcode of this PHP code
- Implement OAuth2 in custom plugin
- login redirect based on user role not work as expected
- redirect user from login page if is logged
- How to lock users account until approvation
- Variable ++ in query loop
- WordPress REST API – Custom field not added to pages