Yesterday I announced that I had submitted a breaking news banner plugin to the WordPress Plugin Directory. A few hours after that post went up, I got the news that JM Breaking News had been accepted into the plugin directory.
The plugin uses a custom post type with three custom fields — link, target and time limit — to display a breaking news banner. The user creates a new “breaking news” post with the title being the text that accompanies the banner along with the link if they have one, whether or not the link should open in a new window and how long the banner should display.
The plugin was created primarily for the Giornalismo WordPress theme I’m working on, but it can be used with any theme. The best usage is in the header with a parent div around it.
I’ll probably only make minor changes and fixes to the plugin for the time being, but the plan is to at some point allow the user to pick a post in like a dropdown or something to use as the link for the breaking news if they want. But that’ll probably be a ways off.
2 responses to “JM Breaking News plugin added to WordPress plugin directory”
Hi, i get this:
Warning: include_once(…/plugins/jm-breaking-news/breaking-news-widget.php): failed to open stream: No such file or directory in …/wp-content/plugins/jm-breaking-news/jm-breaking-news.php on line 36
Warning: include_once(): Failed opening ‘…/wp-content/plugins/jm-breaking-news/breaking-news-widget.php’ for inclusion (include_path=’.:/opt/php70/lib/php’) in …/wp-content/plugins/jm-breaking-news/jm-breaking-news.php on line 36
Can you help me??
Hey David,
Not sure why that error is popping up. Have not encountered that in my testing. Maybe try: include_once(plugin_dir_path( __FILE__ ) . ‘breaking-news-widget.php’);
Also, make sure there’s a breaking-news-widget.php file in the jm-breaking-news directory. If it’s still not working, let me know.