You can use the WordPress widget API to create a custom widget containing your PHP script.
Very simple example:
class shoutcast_widget extends WP_Widget {
function shoutcast_widget() {
$widget_ops = array(
'description' => 'Describe your widget here'
);
parent::WP_Widget(false, 'Name Your Widget Here', $widget_ops );
}
function widget( $args, $instance ) {
extract( $args );
extract( $instance );
echo $before_widget; ?>
<h3 class="widget_title">Your Widget Title</h3>
<?php
// Your Custom PHP Script Here That outputs the display
echo $after_widget;
}
}
register_widget( 'shoutcast_widget' );
Related Posts:
- Updates for a private plugin?
- Edit plugin without hooks in functions.php
- Making plugin unique to not conflict with plugins with the same name
- How to store ACF custom fields data in a custom table
- Is dynamic forms/entries possible in Widget?
- How to get posts by content?
- Too many variations in WooCommerce
- Trying to disable plugins doens’t work
- WordPress plugin DB upgrade
- Plugins won’t update when WordPress says they’re updated
- WordPress multiple widget in single plugin
- Have Plugin Handle Specific URLs
- Layout shop page: resize images and columns
- Invalid shipping method, WooCommerce [closed]
- WordPress with Git deployment issues
- Creating Tables on Network Activation
- Different UI in WordPress
- How to add links in .po (language) file in wordpress?
- Is there a way to share your Facebook Page’s stream on a WordPress page or post?
- How to add equivalent of php include to one page (as plugin?)
- Is there any W3C compatible Share & Follow plugin?
- What plugin should I use for booking events and receiving payments? [closed]
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- Plug-in Conflict: Art Direction and Super Cache
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- The Events Calendar and Easy Digital Downloads adding customer notes to Attendee export
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- getting an installation failed error when trying to load a plugin from a free theme
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- Enabling WP_USE_EXT_MYSQL to support old plugin
- Session destroyed on page redirect
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Can I load the textdomain before a plugin is activated?
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- Does WP delete deprecated plugin/theme files on plugin/theme upgrade?
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Settings API saved values not getting shown in the dropdownbox
- How passing values to construct function with Actions?
- correct validate and sql query
- wordpress add_action() issue in ajax call
- Turning on output buffering in a wordpress plugin
- Is there a plugin for uploading files such as PDF files?
- Register google jquery gets overwritten by plugin
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Location dependent rendering of locations? [closed]
- Why Does The `auto_update_plugin` Hook Disable Management?
- get_comments_number() giving wrong results! What are alternatives?
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- Is there a script to collect all hooks and filters provided by a plugin?
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- Unable to give correct path in wordpress
- Disable variations on woo commerce if out of stock
- Add wordpress user database on android app
- Grab ID from post from plugin and use it to create an object
- Enqueue script: link not working in page source
- Help with a function in a widget
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- Error: Can´t access facebook comment plugin admin page
- Cache plugin for medium traffic news blog
- Deregistering and registering javascript breaks plugin
- how to convert XML from URL to HTML
- i want to rewrite my custom plugin url
- [Plugin: WordPress.com Stats] Javascript not being added to footer
- Strange Cached File in Super Cache
- Wp-minify doesn’t seem to minify my JS code
- eaccelerator PHP error
- Plugin Hook When New Author Added
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- Best approach to make all tags searchable by the wordpress search function
- WordPress – Ultimate Auction for WooCommerce
- Fail on admin_enqueue_scripts when I try it to upload a CSS file to my WordPress Plugin
- Post source link plugin – small modification
- Can we hide a certain user in WP?
- Configure upload folder on WoComerce
- Show Custom Post on Frontend
- Hooking into the HTML header container
- Block plugin update possibilities (but not by hiding notifications)
- Execute function activate/deactivate plugin in specific pages
- Why can I not deregister my style and script on custom post type?
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Using multi-dimensional array with filter
- PHP header() not available to use in my plugin
- database – multiple wordpress installations using same database – can they share plugin settings?
- HyperDB failover Delay
- Displaying friend’s posts only
- Display dashboard other than admin user
- Creating themes using the one Plugin (Toolkit)
- WordPress Categories from Plugin
- How change menu for each user in plugin?
- Check if user is in a group of another site within multisite network [closed]
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Facebook meta tags not working properly on WordPress Site
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- is there a plugin that allow editing pages from within pages without entering admin panel?
- Site is setup statically – how to make it content managable?
- WordPress site show white screen after updating some plugins (URGENT) [closed]
- Modifying lightbox plugin to allow for quoting, Does this exist? [closed]
- How to escape html code?
- Meta box not displaying on the plugin page
- public custom posts not showing in my wordpress plugin