My first plugin – “Text File Widget” is now live on the WordPress Plugins Repository.
It’s a proper job – complete Readme.Txt file, Banner, and Icon.
Here’s the link: https://wordpress.org/plugins/text-file-widget/
It’s a very simple plugin, all it does is display the contents of a text file as a widget. I couldn’t believe that there wasn’t already a plugin for this, so I wrote one..
It replaces end-of-line characters with a “
” for clarity.
Here’s the plugin page: https://www.q292u.com/plugins/text-file-widget
Any problems with it, contact me via WordPress.Org (hit the plugin’s “support” link) – let’s do everything properly!
I've just created my first WordPress plugin! Click To Tweet
I found that no existing plugin did exactly what I wanted to do: display the contents of a text file as a sidebar widget, so I made my own, from scratch.
[There was a plugin that displayed the contents of a text file whenever a shortcode was inserted, which was ok for inside pages and posts, but not widgets.]
While I was at it, I realised how easy it would be to add a shortcode handler as well, so I did.
It’s a pretty specific plugin, only for my “bashthebookies.net” site – not for general release, but it’s a start. (Look for the “Basher’s Daily Tip” widget in the RH sidebar..)
I could easily create a generic “display text file as widget” plugin, though. I’ll think about it.
I also think it would be useful to have an online “plugin boilerplate generator” that did all the boring stuff leaving only the custom code bits to do..
I may do that, too..
Any comments or suggestions gratefully accepted as usual:
Locked out of your WordPress site due to a bad plugin?
Database clogged up and bloated?
Site performing like it’s wading through treacle?
Then Get In Touch!
Let us do the work for a reasonable fee. Ask for a quote!
[contact-form-7 id=”629″ title=”Contact Us”]
We’ve just launched a travel comparison site:
You can use this to compare prices for hotel rooms and flights anywhere in the world, and then book them online.
I manage a multi-site WordPress installation for a client.
Before Christmas, they installed an LDAP connector plugin, but never got around to configuring or testing it.
Unfortunately, the default settings prevented using the WordPress login as a fallback.
So everyone was locked out. So I tried the usual database>wp-settings>active-plugins workaround. There was nothing there!
So I tried the old faithful “rename the plugin folder” routine. Jackpot.
I was then able to get in.