The shortcode functions just return a value, you need to echo or assign it to something.
<?php echo do_shortcode('[div]'); ?>
Related Posts:
- Allow Shortcode in Theme Customizer
- Can I create customizer setting that can handle plugin shortcode?
- enqueue script for specific shortcode
- Why does my short code get executed before other content?
- Run shortcode before filters
- What is wrong with this code I have to make a blockquote shortcode
- Custom shortcodes not working using __s theme
- Place the page title into the short code
- How to provide support for [gallery] shortcode?
- Responsive embed for the video shortcode
- How to display all subpages and short by year
- do_shortcode() in twentyeleven theme
- How to Manually Code Shortcode?
- Extract all shortcode data from post into loop variables?
- Shortcode IF statment help
- Extending custom shortcode to also be called directly from theme PHP pages
- Shortcode call not working in WP Template
- Shortcodes do not work in own template
- Pagination fuction in shortcode always displays on top
- How to use shortcode inside of shortcode in theme
- WordPress Shortcodes – Optional Styles
- Hide/disable sidebar using shortcode?
- wordpress script_loader_tag in function.php
- Theme does not allow shortcodes
- wordpress custom category post shortcode
- Avoiding do_shortcode() loops
- how to edit woocommerce checkout page
- TinyMCE strips content while pasting. Possibly a bug
- Passing a location-dependent array via wp_localize_script within a shortcode
- Problem using $var for shortcode attr value
- Multiple Content Shortcodes
- Onepage with shortcodes
- why my WordPress theme doesn’t support shortcode? [closed]
- The the_post_thumbnail without srcset?
- after_setup_theme always runs
- WordPress API Menu/Submenu Order
- What WP folder can I use to write files to?
- Setting multiple default background images?
- default favicon for a theme?
- First wordpress blog, should I make my own theme for maximum customizability?
- How to determine which sidebar the widget has been added to, via widget admin?
- Plugging into the Media Library to upload images (NOT associated with any post)
- WooCommerce: VAT on grouped products
- Why is unfiltered html allowed in custom fields for author / contributor roles?
- Select front page and blog page in custom theme settings page
- Getting the wrong page ID
- Avoid theme updates, just one theme
- Theme change only in CSS and a few images
- moving an admin submenu item to a top-level position
- Metadata Query when storing data as array possible?
- Excluding Pages not working
- How to use different assets if local or live
- get_option() returning empty
- How can I add a custom button to the post editor toolbar?
- How to make the excerpt_more filter apply to the actual post excerpt?
- Default image size not working
- Customizer: save setting/control content to post/page
- Wp_customize_image_control Use Add Media
- Changing Header Image Every N Minutes/Seconds
- Post Content Displaying Below ALL Shortcodes Content
- Can I add an icon & function to the “Upload/Insert” toolbar at the top of the content editor?
- underscores use of the article element on the page template
- Ideal inline dynamic CSS injection
- How to create and populate with few links a menu in child theme functions.php?
- Plugin does not work in custom theme
- Making custom woo themes
- Previous and Next links not populating, have I missed something?
- Single.php the_excerpt loads same as the_content not loading read more line
- Where to put custom page templates in theme?
- Is there a way to retrieve the calling template part?
- How to fix WordPress images not showing up in local hosted XAMPP server?
- how to hide home nav link in wordpress
- .current_page_ancestor broken in Twenty Eleven
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- WordPress theme header.php should I add title meta?
- Help with Core Mods
- Problems with cart and pages on _s theme
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- Custom post type query with pagination doesn’t work
- Child theme menu not appearing in Twenty Seventeen
- Edit Product Archive design for Woo theme
- How do I remove header/page-title image in farvis theme? [closed]
- Which theme PHP file should be edited in order to change Posts appearance
- Necessary css classes to be included in theme stylesheet
- How to link post image to post link?
- get_the_excerpt() removes all p tags in page!
- jQuery conflict in WordPress, works fine in HTML
- Including some variables in function.php and echo them is several place of theme is not working
- How to migrate the menu from the site on my own theme in WordPress?
- Why is including all your files within a theme folder important?
- FitVid not working for iframes on particular theme install
- How to create multiple sidebar areas with a forloop and register_sidebars?
- Make theme editor to show all theme’s files
- can’t add EVENT LISTENER to a element
- add_action works outside condition but not inside it
- Bootstrap isn’t called into my WordPress theme
- Jquery Ui Tabs not working
- Adding a new layout for genesis
- Which function(s) to build a paged HTML table