Well…outside of the fact that you’re unable to load PHP in *.html files, let’s try to look at this from a different angle here…
One way that this could be done would be to convert all of the *.html pages – that you would like to include the news ticker on – to *.php pages, and to insert a PHP function that loads WordPress in the header of those files, along with the news ticker shortcode or display function.
Another way that this could be done would be to create one .php file in the root of your WordPress installation that only includes the aforementioned PHP function that loads WordPress in the header of that one file, along with the news ticker shortcode or display function, and loading that on the html pages through an iFrame.
Here’s the function I referenced above:
To include WordPress in an external .php file, place the following code in the header of the file.
Related Posts:
- WP Rest API: details of latest post including featured media url in one request?
- Prompted for FTP details even with FS_DIRECT set to true
- How to customise the output of the WP image gallery shortcode from a plugin?
- How to load wp_editor via AJAX
- How to check if user is in back end?
- I Want to Get A Plugin Version Number Dynamically
- How do i know the current post type when on post.php in admin?
- How to check if a theme is active?
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Is there a standard for naming plugin versions
- Are there procedures to prevent malicious plugin updates?
- How does WordPress handle MySQL row lock errors?
- What is the best page ordering plugin that works well with WPML? [closed]
- Removing an action from an external plugin class
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- How can I have two different urls for the same page that load two different templates?
- Page Templates from plugin not working after upgrading WP to 4.7 or upper version
- How to generate expiring URL?
- How does WordPress Multisite know that a Plugin is installed?
- Is there an A/B testing plugin that lets you vary the heading, featured image, and content in a WordPress post?
- Avoiding plugin name collisions with WP updater
- Generate custom output for page/URL in a plugin
- Is it a bad practice to go directly to the mysql database while developing a plugin?
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- Using standard backend elements in Plugin
- How to display variable prices by default in woocommerce?
- Remove update messages for deactivated plugins
- How does WordPress update plugins, without running into permissions issues?
- How to hide fields from my user profiles
- What happened to convertEntities?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- Register Custom Post Type from Plugin
- How to make my plugin theme-independent?
- Plugin to set all Posts in a certain Category to a certain Post Format
- Can WordPress handle these functionalities?
- Updating post meta for custom post types
- Why would WordPress request FTP information when it can write to the file server?
- How can I enqueue a style only when a particular widget is active?
- How should I handle errors within a plugin?
- Add custom buttons with custom actions in Edit Post screen in WordPress?
- pre_set_site_transient_update_plugins wont call on hosted webspace
- wp_schedule_single_event function not working
- post_content getting cut off on blank space on $wpdb->update
- Is there a plugin to display certain posts on certain pages? [closed]
- Extending WP’s upload/insert media functionality
- How to bulk send emails
- How to handle the Plugin Version on Update using Tortoise SVN and the worpdress.org Plugin Repository?
- 403 Forbidden – You don’t have permission to access /wp-admin/admin-ajax.php on this server
- Custom Shipping method not showing in checkout
- REST-API: extend media-endpoint
- How to move the code injected by a plugin below the default WordPress code? [closed]
- How to find installed plugins
- Setting up a multilingual wordpress site
- Put code into body tags near top, using a plugin
- How to get popular post from across a network?
- Automatically adding post and pages to new blog setups
- I need to have two 1-5 star rating fields, only editable by admins. Which plugin should I use?
- Seaweed Plugin not working
- Can I share predefined fonts from theme_support with a gutenberg component?
- how to include a simple jquery file into a wordpress plugin
- The Point of Using apply_filters()
- 500 Internal Server Error when updating htaccess
- Create unique identifier that is displayed to the user and admin via Ninja Forms
- Where does WordPress register default scripts like jQuery?
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- Add custom variable in Contact Form 7 mail body
- Is it possible to group plugins into a folder?
- Is it possible to enqueue CSS files from plugin before theme’s CSS files?
- Storing Options in a Shortcode
- How does WP handle multiple matching rewrite rules?
- Front End Plugin for User Management [closed]
- Determine Registered Admin Menus
- Removing plugin settings from database
- Add Product Subtitle to Woocommerce Product Page
- How to delete Passwrd Protected posts cookies when a user logged out from the site
- How do I create a custom add media button modal?
- Not getting author rank when using return
- wp_trash_post is leaking memory
- Implement Autocomplete for a custom field on WordPress Plugin Frontend
- Error “preg_match_all” with WordPress SEO by Yoast plugin [closed]
- Plugins Page invisible / white
- Help With MySQL to WPDB Query Conversion
- Map a custom id to wordpress post id
- What are wsm tables for?
- How to block plugin activations with no known user or coming from unknown IP address range?
- code is working properly in Core PHP but writing coding in WordPress
- Display encrypted content on my website
- Force quit running background job
- WordPress Sitemap including pages that aren’t there
- How to fix the woocommerce – adaranth.com redirection issue [closed]
- Inserting external image in WordPress plugin to track the plugin instalation [closed]
- How can I fix the mixed content problems of the kk star ratings plugin?
- WordPress + PHP + IIS + PHP Fatal error: require():
- Custom plugin init action causing general slowness
- Remove a custom options name/value pair
- How do I make a child theme I made POST through a 3rd party plugin?
- Adding regex filter to feedwordpress
- Use Cornerstone Plugin outside of WordPress Dashboard
- Programatically update non-wordpress repository hosted (self-hosted) plugins
- Create page from plugin, but have it completely hidden