Try this:
function example_shortcode( $atts ) {
$shortcode_output = "<p>Some shortcode content.</p>";
$shortcode_output .= "<p>More shortcode content.</p>";
ob_start();
do_action('below_shortcode');
$below_shortcode = ob_get_contents();
ob_end_clean();
$shortcode_output .= $below_shortcode
return $shortcode_output;
}
Related Posts:
- Enclosing Shortcode Within Another Enclosing Shortcode Breaks Output Functionality
- How can I collect and output all attributes of all executed ShortCodes?
- Which method to use when deleting posts from the front-end
- Why are you using add_action for shortcode?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Pros and cons of actions over shortcodes
- manipulate a plugins shortcode
- Print shortcode in custom action hook not where the shortcode is entered
- Remove and restore one shortcode
- passing parameters to do action from shortcode to wp_footer
- Convert HTML Script to Shortcode [closed]
- Use another action instead of the shortcode API to display the last time a user logged in
- Modifying the wordpress login page and then referencing it with a shortcode problem
- contact form 7 :create shortcode usable in email message [closed]
- How to create shortcode for auto login after registration
- Hook into existing shortcodes to manipulate the attributes?
- How to include code only on specific pages?
- Is there any action filter/hook for validating a custom field before publishing the post?
- When can you get current page ID and initialize hooks right after?
- Create custom [sourcecode] shortcode, the right way?
- TED talks shortcode not working
- What is the best way to enable nested shortcodes?
- shortcode for logo image
- Stop strip_shortcodes() stripping content inside shortcodes
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- Is it possible to create an action hook using do_action() within add_action()?
- An action hook where a comment meta is updated
- Gallery shortcode menu order fix no longer working on WordPress 4.0
- How to save a shortcode in a Gutenberg custom block?
- Too many actions/filters!
- Can a shortcode function this way
- Dynamically create shortcodes using add_shortcode and a callback
- Passing attributes to shortcode dynamically
- Stop parsing shortcodes
- Meta tags in shortcode
- shortcode javascript not working on custom template file inside theme folder
- shortcode get thumbnail size
- Stop auto formatting in shortcodes
- Get URL Param Plugin and Inserting Result in Widget Code
- Problem with using custom shortcode with ACF WYSIWYG field
- Preserve shortcode content formatting
- Reloading a Mediaelement audio player
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Shortcode is not processed when added to option field using wp_editor
- Adding Shortcode Values to wp_head
- Filter Posts from the Main Query
- My shortcode does not call the function
- Hide Selection of Text From Archive, but Show on Single Posts
- How to cancel an action hooked to untrash_post? or any hook
- How to create an incremental list using shortcodes?
- Do shortcode that is inserted in a textarea is not displaying properly
- Adding custom form within add_shortcode
- Call to undefined function is_home() or any conditional tags
- wp_editor not rendering the shortcode
- how to add shortcode in wordpress container [duplicate]
- Rewrite to load homepage for a different url
- How to make this shortcode work for post content wordpress [duplicate]
- Insert Content Before div#main from the functions.php File
- stop WordPress removing shortcode from content [closed]
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- What hook can I use to modify custom post data before it is displayed on the page?
- Is it possible to handle two or more shortcodes in a single page?
- Toggle Shortcode Sanitize Title
- Clearfix Shortcode
- How and when to include shortcode source files
- Use full size images in a specific gallery
- How to deal with WordPress bug: can’t use wrapped and unwrapped shortcode on same post
- Execute Shortcodes when submitting post
- Substituting value via shortcode
- Create shortcode for each form field in contact form 7
- Display custom product option in admin order details
- Restrict editing of post type to list stored in user meta
- Auto embeds don’t work for attachment descriptions
- Rewrite the search page to use an appended slug + parameter
- Shortcode to appear and show the date not code in Title and description of Social Media sites
- how to add shortcode widget at end of main blog page
- do_action not working in loop
- Shortcode is not showing content when placed in editor (post_type = page)
- add_action doesn’t work for my function
- How to set up posts per page on WP
- How to insert a short code into Contact Form 7 in WordPress that will call a function once the submit button is pressed
- Unable to make shortcode, what is wrong?
- Can add_image_size be added earlier
- How do i remove Business feeds Shortcode fatal error
- Push Shortcode parameter to template
- latest posts shortcode with image
- ‘Conflict’ with action deleted_post and is_admin()
- Featured image with link to post shortcode, image displaying above the post
- Video shortcode inside tabs shorcode NOT working
- How to stop unwanted splits in excerpts when using shortcodes for sliders or players
- How to add meta slider lite or other slider to main page header in pinboard theme
- Escaping a shortcode so it displays as-is [duplicate]
- WordPress do_shortcode first iteration
- Add a short code to a plugin
- Applying if (get_post_meta) to new shortcode
- Add widget/shortcode to sidebar OUTSIDE of the theme
- How to remove https:// from shortcode generated url
- How to reuse php templates as shortcodes?
- Use add_action to run a script, but only on the post editor page
- Shortcode attributes from meta query variables