Title: Calling Widgets Using PHP
Last modified: August 19, 2016

---

# Calling Widgets Using PHP

 *  Resolved [John](https://wordpress.org/support/users/jiglet/)
 * (@jiglet)
 * [17 years ago](https://wordpress.org/support/topic/calling-widgets-using-php/)
 * I’m playing with a theme and I’ve stripped out the widget areas. I have some 
   plugins I’d like to use that are supposed to be integrated into the theme as 
   widgets, by dragging and dropping them into the sidebar. Since I’m not using 
   widgets, is there a way to use these plugins by calling them with a line of PHP
   code or something? Any help would be much appreciated… If it’s any help, this
   is the plugin I’d like to use: [http://wordpress.org/extend/plugins/wordpress-popular-posts/](http://wordpress.org/extend/plugins/wordpress-popular-posts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [17 years ago](https://wordpress.org/support/topic/calling-widgets-using-php/#post-1022535)
 * If you read on the page in the link you gave . you will see this :
 * >  Placing WordPress Popular Posts in your templates
   > If you want to use WordPress Popular Posts somewhere else in your templates,
   > simply place <?php get_mostpopular(); ?> where you want your listing to be 
   > displayed. Easy, huh?.
   > USAGE:
   > <?php if (function_exists(‘get_mostpopular’)) get_mostpopular(); ?>
 *  Thread Starter [John](https://wordpress.org/support/users/jiglet/)
 * (@jiglet)
 * [17 years ago](https://wordpress.org/support/topic/calling-widgets-using-php/#post-1022540)
 * Generally speaking, does this work with all widget-based plugins? Or does it 
   vary?
 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [17 years ago](https://wordpress.org/support/topic/calling-widgets-using-php/#post-1022547)
 * depends on the plugin.
    Most of them do add some function to the functions.php
   file, and in that case ,it will work. (changing the function name obviously)
 *  Thread Starter [John](https://wordpress.org/support/users/jiglet/)
 * (@jiglet)
 * [17 years ago](https://wordpress.org/support/topic/calling-widgets-using-php/#post-1022575)
 * Cool – Thanks for the help, I appreciate it!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Calling Widgets Using PHP’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [John](https://wordpress.org/support/users/jiglet/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/calling-widgets-using-php/#post-1022575)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
