The simple solution is to not give wpautop
anything to chew on.
function contact_us() {
$str = "<p>Here's the low down on what to do</p>";
$str .= '<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css"/>';
$str .= '<link rel="stylesheet" href="http://studiocloud.com/css/validationEngine.jquery.css" type="text/css"/>';
// etc
$return $str;
}
Your generated code won’t be formatted, but there is no reason it should be. We are long past the days of static HTML, at least I am ( “Thank you” to the Lords of Kobol ), where such formatting mattered. Now, all that formatted is just unnecessary characters that have to travel down the wire.
Related Posts:
- Conditionally Loading JavaScript/CSS for Shortcodes
- Show shortcode without executing it
- How does a shortcode work?
- Run visual composer code in php page
- Remove wptexturize from a shortcode?
- Using shortcode in Post title
- Shortcodes, HTML tables, and multiple rows
- Audio or playlist shortcode condition according to the amount of files on attachment page
- Does a shortcode with a single attribute have to use an array?
- template_redirect to accompany with a shortcode
- Use [shortcode=”value”] instead of [shortcode att=”value”]?
- Tinymce shortcodes within shortcode contents
- I dont want to show shortcode in tag
- Post loop created via shortcode not displaying shortcode in content
- Pass shortcode variables to template
- passing multiple parents value into a shortcode
- Is it possible to add a repeater field to TinyMCE’s option window?
- How do I preview the result of a shortcode in the TinyMCE editor?
- Shortcodes: Pros and Cons
- esc_attr not working in shortcode
- Raw output (preventing wpautop)
- Conditionally loading Facebook PHP SDK in shortcode
- Can’t understand $atts in functions?
- Are .MP3 files with capital letter extensions allowed in [audio] shortcode?
- How to handle shortcodes when using the JSON API
- Are shortcode functions applied while rendering the content, or are they executed and stored with the post content?
- is_admin() returns false in save_post hook with Gutenberg editor
- Why are Shortcodes Disabled in Widgets by Default?
- Get Posts shortcode plugin and meta_query?
- possibility to control embedded video timeline with buttons and links external to the player
- detect when shortcode ran for the last time
- How can a shortcode can take the place of the featured image in a post?
- Shortcode for Twitter Bootstrap Collapse
- Different uniqid when calld in wp_localize_script and shortcode
- Gravity forms customize field markup for the same form appearing in different places
- How to type shortcode-like text in WordPress TinyMCE visual editor?
- Gallery shortcode – change link file image size? (not using default fullsize image)
- Shortcode for order number [closed]
- Edit shortcode in post content programatically
- How to change to local video player on shortcode ultimate to video.js?
- Adding shortcode field to edit gallery / Gallery Settings
- Shortcode not showing anything
- return unformatted content in encosing shortcode
- How to display Feedburner subscription count as plain text via a shortcode in post/page editor of my WordPress blog?
- Function result goes outside div
- Shortcode in my childtheme is not working
- Displaying shortcode in footer
- Displaying shortcode output through Options Framework
- How to Generate html tags using shortcodes?
- Are Shortcode Attributes Always Passed As Strings?
- Show form per shortcode
- Use another action instead of the shortcode API to display the last time a user logged in
- Default WordPress shortcodes not working?
- Pass fileurl parameter into shortcode from Advanced Custom Fields
- Get array of shortcodes within string
- Shortcode arguments to another shortcode
- Sanitize or treatment of string in editor via shortcode
- Adding a custom field to do_shortcode [closed]
- contact form 7 database short codes [closed]
- Video shortcode, option are not rendered
- Can’t render shortcode when html tag contains hyphen
- Not to escape a text
- Color on Shortcode insert that creates a button
- shortcode doesnt work on excerpt
- Adding Author URL to Nav Menu via Shortcode
- Displaying an interactive web map on my wordpress site
- Date Shortcode in Image alt and title tags
- access shortcode atts in template part
- Pagination for custom posts loop
- Modify [caption] shortcode so and are not used?
- May an attribute have no value?
- How to Call Related Post based on Categories Inside Post Content with Shortcode?
- SQL query to bulk change short code in all posts
- Display shortcode in text field with wordpress settings api
- How to strip header tags & shortcodes from the_excerpt()
- shortcode display metainformation as linked image
- Multiple shortcodes only use attributes from one of the shortcodes on custom plugin
- Cannot modify class property from shortcode handler function
- Reusable Dynamic Taxonomy Shortcode
- How to display a page dependent on a url parameter supplied by a form/button page?
- Can’t place endwhile in the loop properly in a shortcode
- How to reduce the image size inside an icon? [closed]
- How to insert visual compser post grid shortcode in a custom page template? [closed]
- WordPress plugin shortcodes not outputting anything
- Shortcode tags appear on mobile themes
- WordPress Gallery with ID’s Shortcode not Working
- Manipulated shortcode output
- Where is escaped the shortcode?
- Changing layout of defaul gallery output to masonry
- shortcode change variable base on user
- Inserting shortcode is blanking excerpt – any ideas?
- If do_shortcode is blank, return some message
- Previous/Next with the same category
- I’ve broken the short code for Contact Form 7!
- echo a shortcode in a shortcode code?
- How to enable on custom shortcodes
- Nested ShortCode works inside the_content, but not outside of it
- wordpress how to sort posts on custom data with plug-in “Search & Filter”
- How to reuse php templates as shortcodes?
- Shortcode attributes from meta query variables