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:
- How can I find plugins’ slug?
- How do I exclude plugins from getting automatically updated?
- If I rename a plugin (in its main php file) do I still get update notifications?
- How can I allow commas in tag names?
- “Add Media” button in custom plugin
- Disabled plugins are they security holes – rumor or reality?
- How to implement WordPress plugin update that modifies the database?
- Can I change ownership of my plugin?
- wp.media update options and force render on uploader
- Looking for a Table of Contents (TOC) plugin for WordPress
- Writing test cases for a WordPress Plugin that has translations
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin update error message
- How can I modify what is being output in wp_head, whether by a theme or WordPress in general?
- Where should I use get_option in a plugin
- WordPress Plugin Development from Scratch. How? [closed]
- Customize plugin update “new version is available” text
- Automatically install wordpress plugin at theme activation
- How to run Two WordPress blogs with different themes and with single database and same content
- “Donate to this plugin” for WordPress.org Plugin Authors
- When coding a WordPress theme, where does the theme (i.e. the presentation) end and the plugin (i.e. the functionality) begin?
- Core framework/helpers for logging stuff?
- Disable Specific Widgets on Selected Pages of a WordPress Website?
- How exactly does Bad Behavior plugin work?
- Automatically Import Image into Posts from URLs on the Web?
- Disable text tab on WordPress text-editor
- Restrict individual category combinations
- How to handel multiple checkbox field in the admin settings page with Settings API
- Are orders of magnitude used for “Active Installs”?
- To remove plugin notices for non-admin users
- Set a User as Author of all ‘New Posts’ posted
- Installing Facebook comment plug in without loosing all previous wordpress comments?
- How to show custom message once on plugin activation?
- How to notify users of blog updates a la Admin Plugin Update notifications?
- How can I force a “404 Not Found” error
- How do I configure WordPress to talk to a Microsoft SQL Server database?
- Files being generated in multiple directories supposedly by WordPress (advanced_settings.php and common_config.php)
- Passing URL parameters to WordPress pages and pretty url
- wp_schedule_event / cron_schedules – custom recurrence time not working in Plugin
- Multiple Password Portal Page BEFORE User Account Set Up
- How to get the custom page get_permalink?
- Plugin translations problem
- Use external link in the add sub menu
- How to set “with_front’=>false” to a plugin-generated cpt?
- plugin shortcodes not working on custom theme- unsure how to fix
- Is there a plugin that allows a user of your site to get an email from you with an attachment?
- An old plugin self-made stoped sending mail
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- What is the function to get plugin base url in multisite?
- Change “From” name in MailChimp STS plugin [closed]
- PDF download – use wordpress functions
- Code in theme functions.php faster than with a plugin?
- register_activation_hook in mu-plugin not triggering
- WordPress register_activation_hook table creation not working
- How to add Edit | Delete button on rows?
- Multiple Domains with Single WordPress Install
- API to filter new user registration $POST data?
- Multisite mu-plugins site-specific directory
- Set cookie then immediantly refresh the page
- Is there a plugin that makes extnernal links open in new window, BUT [closed]
- Is there a neater way to do this?
- WordPress shopping cart that supports 2 tier product variation options
- plugings request url is the old url
- Authorization header malformed. [jwt_auth_bad_auth_header]
- Wp die causing 500 Internal Server Error?
- How to remove duplicate Custom Fields?
- Calling a plugin in theme development
- Unable to activate wordpress importer after installing it
- Trying to count the total number of paragraphs inside a blog article
- How to get post URL in the_content filter?
- Redirect to a welcome page after updating plugin
- Installing WordPress only for a separate page – ‘mydomain.com/blog’
- Manually add order item with fixed product_id in WooCommerce
- ‘Customize’ button in admin bar for CSS
- How to update WordPress plugins to latest using SVN
- Saving Custom Post types and fields to a custom table
- How to Create a Custom Plugin Permalink
- Possible htaccess configuration issue for HTTPS websites by WP Fastest Cache plugin? [closed]
- WooCommerce shop page orderby [closed]
- Inserting HTML tag with ACF into shortcode
- How to Display a Plugin function (content) on frontpage using index.php
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- Loading jQuery UI in the head
- WordPress JSON API remove posts from a specific category
- WordPress Blank Screen Issue [closed]
- How can I disable the multisite feature of WordPress 3.0?
- How to translate __(”) strings in admin [closed]
- Breadcrumb NavXT plugin – exclude ‘home’ page
- Outbound Click Tracking
- Error with Image Slide plug-in/ s3slider in WP
- Disable woocommerce cookies and delete cart data automatically
- Why required field not working in Country dropdown in WooCommerce –
- WordPress: cleaning media library
- How to add an automatic refresh in WordPress for a Page/Post or an embedded OneDrive/Excel HTML Code?
- File Storage and Repository for individual user
- How to identify the names of deleted plugins?
- How to Display Taxonomy Custom Meta Box Data in Archive Page?
- Cannot display settings field
- WordPress Backend HA (Automatic failover)
- WordPress 4.2.1 pre_get_comments doesn’t work after update