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:
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- LaTex MarkUp – align equations
- How Do I add a redirect rule to WordPress?
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- How to properly secure my WordPress installation?
- How do I only load a plugin js on it’s settings pages?
- Is it necessary to translate WordPress key terms when localizing a plugin
- Best way to inject css into admin_head in plugins?
- How to display a category list in a mediawiki like way?
- Comparisson between date() and a date from wp_postmeta
- Release a plugin with composer installed packages
- Use functionality of 2 wordpress plugins
- Suggestions for i18n plugin [closed]
- wp_mail() is not working on server
- Hide plugin list
- WP-Members redirect if member ALREADY logged in
- How to edit/delete single row items in a table on my own menu page
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Is there plugin to show recent posts from one website in the widget area of another?
- Get a list of galleries from an album in NextGEN Gallery [closed]
- How to create custom embed block in gutenberg wordpress
- How to add css class to a specific set of images?
- Undefined property: WP_Post_Type::$ID
- WooCommerce E-Check payment gateway disappeared when site switched to multi-site
- How can sanitize $_FILES[‘haq_slider’] field
- Wp favorite posts get user favorites in profile using buddypress [closed]
- Preferred way of cacheing a value in php
- Internationalization autocomplete JS variable
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- Making a plugin “Suite”?
- Automatically add attributes to woocommerce product?
- Howto accurately position images with maximum flexibility?
- submit posts by unregistered users in wordpress
- How to apply a patch via plugin?
- wp_remote_get() returns 403 while file_get_contents() does not
- Programmatically Process Order through WooCommerce/Stripe Payment Gateway [closed]
- Create a multisite network for an existing installation
- polylang + category/tag custom language link
- How do I log out users from a restricted page if they are already logged in on another device? [closed]
- Unable to delete custom post types, confusion around capabilities
- Getting wp.me shortlink for wordpress custom post type
- Post Comments with Ajax in WordPress
- Execute js files doesn’t seem to work
- where is the main file in this plugin?
- What’s causing this error? “Warning: Invalid argument”
- Problem since update 3.5 [duplicate]
- How can I use a file in my plugin as a replacement for single.php on custom-post-type query?
- How to create a post with next buttons
- Allowed memory size exhausted problem
- How to keep track of new plugins published on wordpress.org?
- Is this a plug-in in wordpress or a custom JavaScript
- Plugin onclick button activate other plugin
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Show icons or badges under title on product archives/category pages
- How to automatically redirect to custom admin menu after plugin activation?
- How to get images using taxonomy ( WP Media Folder)
- Site shows URL instead of “meta title” after deleted few plugins (not any SEO plugin was deleted)
- Inserting shortcode in href – any ideas or workarounds?
- Convert to shortcode?
- BuddyPress activity on edit post for a CPT
- Disallow: /wp-* in robots.txt?
- Add logo to admin menu in my plugin
- Structuring function with registration_errors hook
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Advanced video gallery plugin needed [closed]
- Displaying URL Based on User Input from a Form W/in a Dashboard Widget
- Problem with ajax plugin for refreshing posts
- Is there any plugin to show number of clicks on the link?
- how to resubmit a submitted form with gravity forms plugin
- wp_query ‘s’ parameter does not work with WC_AJAX
- Monitor all the queriers executed by my website
- problem disabling plugin only for mobile
- How to remove a hook written with $this?
- WordPress hide post from custom post-type on a single page
- Installation failed: 504 – Gateway Timeout
- Create survey that redirects to sidebar menu customized to answers
- How to allow code like PHP, SQL, HTML to WPBakery Visual Composer?
- Changing author slug for a custom role without using plugin
- How can I mass-open/edit all WordPress posts & pages?
- How can I refresh the plugins cache manually?
- Need woocommerce function for getting cart list with items
- WPNeo Stripe connect does not work
- How can I customize Easy Appointment plugin?
- WordPress on shared server Plugin not working
- Allowing Comments on Posts
- How to install jquery dotdotdot plugin for WordPress?
- Creating Custom Hook for my plugin
- Plugin Translation project not found
- Web Application Framework Compatibility with WP Plugin
- Manually return false for function_exists
- Plugin loaded, but not running
- Showpost and last
- How to install wordpress theme’s plug-ins?
- Filter EVERY category link with my plugin
- [Custom field template plugin] Upload limited to 20 inputs file
- Undefined variable _POST
- New admin account cant access plugins.php
- Website keeps going down, is it a plugin, database, memory problem, or something else?
- WooCommerce product prices not showing up correctly [closed]
- Social network plugins for WordPress [closed]