You would use the_widget
https://codex.wordpress.org/Function_Reference/the_widget
This template tag displays an arbitrary widget outside of a sidebar. It can be used anywhere in templates.
<?php the_widget( $widget, $instance, $args ); ?>
e.g. <?php the_widget( 'WP_Widget_Archives' ); ?>
Related Posts:
- How can I use the built in WordPress “browse link” functionality?
- Code for Recent Posts Widget
- Modifying the default search widget
- Prevent widgets removal
- Is there a way to add more tags to the tag cloud?
- Modify recent post sidebar to show post thumbs with out plugins
- How do I save data from submitted form from widget
- Why Can’t wp_editor Be Used in a Custom Widget?
- How to listen to color changes on the color picker?
- Disable default WordPress widgets in sidebar
- Updating to Version 4.5 bumped my “main sidebar” widget out of place
- How can I delete all inactive widgets?
- Call sidebar from a template
- Adding classes to dynamic sidebar
- Widget Area: Modify $param[‘xy’] from widget-$n
- Need help adding additional controls to a custom widget
- Why do none of my widgets have a title?
- Widget area inside a widget
- How to limit wp_get_archives to show months for the X years only
- Bolding specific word(s)/parts of widget title
- Adding a widget to a string of HTML
- How to add a class to a link in text editor
- WordPress widget new instance creates content duplicates
- Pass variables from one widget to another widget
- Remove the widgets tab from theme customizer
- Check if widget is active
- Radio buttons in widget not saving
- AJAX Contact Form Issue
- Including PHP files doesn’t work outside of Localhost
- Is there an official email form widget or block?
- Widget html code error
- Display sidebar only if it has content
- Post-specific widgets in WordPress ‘Twenty Fourteen’ theme
- Can WordPress Read Its Own RSS Feed?
- Display custom widget, added as a shortcode in the correct place
- Debug errors on sidebar
- Dynamic sidebar based on category
- Show posts from one category with thumbnail and description on latest
- Show widget differently depending on if it’s in the sidebar or footer
- Get posts after today (upcoming events)
- How to pass data from page to widget functions?
- Adding a rich text editor to a widget – specifically CKEditor
- Enqueue script/style if certain widget has certain value
- How to display/register widget only on post pages in custom plugin
- Is it possible to display tag cloud widget by category?
- Widgets not saving values
- Widget page is missing from menu and default widgets are not showing
- wp_editor in widget breaks after save (no buttons and visual tab broken)
- How to use a dropdown to populate a list of post from CPT
- Fire on widgets_init only on dashboard
- Registering a stylesheet inside my WordPress widget
- is_tax() not working in Widget Logic [closed]
- How to position custom dashboard widgets on side column
- WordPress widget title coding
- Text Widget in Footer for just 1 page template
- ‘is_author()’ logic in widget for author only
- wp_dropdown_pages in widget form
- Recent Comments from Specific Category Widget
- Different sidebars not changing
- How do I create a template page with a specific widget as the content?
- Placing a widget with $wpdb query
- Loading the native WordPress image uploader in custom widget
- How Migrate a Legacy Widget to block?
- Creating a dynamic class name in my custom widget
- Want to add more option in “Sexy Login”
- WordPress Local to Live and The Missing Widgets!
- Extending the WordPress Recent Posts Widget
- delete widget upon uninstall
- How to paste widget to a specific page
- How do I find out which
- Unable to see Widget Submenu under Appearance with Class Based WP_Widget
- An archive widget, coming from nowhere on my posts and pages
- custom widget not saved to sidebar
- When editing in block editor, the post/article gets under the floating widgets
- Make widget with media upload repeatable
- Is it possible to dynamically output the name of the widgets?
- I accidentally added a widget area called sidebar 1
- Apply two different styles to Wiget Titles along with a decorative line
- How Can I Replicate & Register a Widget from the Child Theme
- How to retrieve category ID’s from widget settings?
- My plugin works in home page, but doesn’t work in post page
- Widget to embed youtube video
- Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
- wp_list_categories + widget
- How can I add widgets to the category page?
- How to create another widgets.php page
- Remove default WordPress widgets
- widget that will do shortcodes that user inputs
- How to show widget in frontend?
- Widget Development – Displaying dropdown content
- WordPress function breaks widget’s markup?
- Registering multiple copies of a widget
- An issue with register_sidebar and the admin interface
- page url in shortcode
- iframe/embed vid in text widget loads outside container and moves around when scrolling the page?
- menu in different page in different style
- Add text to Text Widget using Javascript
- Widget logic not working
- Subpages menu on sidebar plus widgets
- getBlockVariations(…) is undefined in Widget and Template Part editors but not Post Editor