Try adding this to your plugin file (or functions.php). You’ll use [my_more] as the shortcode for this example.
function wpse50449_more_func( $atts ){
return "\n<!-- more -->\n";
}
add_shortcode( 'my_more', 'wpse50449_more_func' );
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
- 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]
- 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
- 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]
- 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
- 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?
- How do I apply style to each category of a list?
- Create shortcode to echo javascript
- Redirect to another page using contact form 7? [closed]
- Custom Shortcode Broken in WordPress 3.1
- Namespaced shortcode?
- Anyway to convert a plugin to become a shortcode?
- Displayed content disappears when adding attributes to shortcode
- How do I pass custom shortcode-extracted variables (taxonomy) into a query function for WordPress RoyalSlider?
- Flipping Book PHP Code? Any experience?
- Custom shortcode for displaying user based on a role parameter
- WordPress Plugin Insert Html Code with Shortcode
- shortcode – multiple instances of same parameter name in one shortcode instance
- Function call in wordpress short code handler fails
- strange shortcode error: does shortcodes requires any dependency?
- wp_localize_script not passing the data
- Get post content from outside the loop with plugin shortcode usability
- Is there any way to inject text onto pages?
- Create Short code dynamically
- Get variable value based on string constant
- how to check if a shortcode is used more than one time in the same post
- grab or load text on demand
- How can I replace content on site generated from plugin without changing plugin
- Rename Smart YouTube’s httpv back to http for all posts
- WordPress load same script two times
- Managing and deleting transients with dynamically generated transient names
- how to display a template.php in a shortcode
- list of custom post by custom field in frontend
- get_post_meta shortcode returns empty field
- Get a value from a shortcode for another function
- Shortcode do not return the right data in post
- How to call function in WordPress on button click?
- Why does my custom plugin only function correctly once per page?
- Hide content for specific users with id
- JS working when used normally but not in wordpress
- using WPPB shortcodes without the plugin
- save short-code in my custom plugin settings problem missed something
- How to pass multiple custom fields as shortcode’s parameters
- Do_shortcode before send email content
- Get shortcode attribute for AJAX call
- How to use a shortcode of a plugin in another plugin php file
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- How to store multiple instances of the plugin’s options for various shortcodes
- Modify Plugin shortcode function code
- Meta box or shortcode help
- wordpress Shortocode running twice?
- Shortcode in a blog post, footer and related products stop working
- Call/Run a Mathematica (.m) Shell Script from WordPress Page/Blog
- Using “excerpt_more” filter for a specific post type
- Allow user to input shortcode into wordpress widget
- How to use shortcode of any plugin to show it visually where i want?
- How to Set Limit with WordPress Get Bookmarks Shortcode
- Strip shortcode from excerpt [duplicate]
- Need to change contact email depending where user is from
- Pulling RSS from site and display it in posts
- Shortcode return is printing a 1 afterward
- How to use ‘Event Manager Shortcodes’ plugin via the php code? [closed]
- WordPress shortcode plugin not working
- WP Customer Reviews call short code on another page [closed]
- Display HTML5 jQuery Audio Player On Front Page
- Shortcode returning specific content of a post
- Invalid argument supplied for foreach()
- Beginner question: Accessing js script in plugin
- How can I get the permalink of a page on which shortcode has been used
- thumbnail_width not working in wordpress most popular post plugin
- Display file contents within Plugin