Tuesday 3 September 2019

Arch and flexget

I am a big fan of Arch Linux and can't say enough about it's flexibility. So I like to support it any way I can. And you can too! Here is a working (at least for now) flexget configuration for adding the latest arch.iso to your transmission queue. I had a working version also for the RSS links, but didn't like how there were no magnet links. So I switched to direct regex parsing of the download page. Also btw i use arch...

Thursday 8 September 2016

WordPress Recent Posts with Include

Have you ever wondered why something doesn't exist even though you think it should and every where you look it looks like people want the same thing?

Well after searching for a while for a decent way to add a recent posts widget to a WordPress page I came across a great script that was a modification of the existing WordPress Recent Posts widget that added exclusion functionality so you could remove certain categories. I thought that this would be exactly what I wanted except for the fact that if you had multiple categories for a particular post it did not have the logic implemented to keep categories that also had an exclusion associated with it.

Example:
----------------------------
Post    ---    Categories
----------------------------
foo            news,events
bar            events

The new widget with the exclusion category of events will exclude both posts. Giving precedence. If this functionality is something that you are looking for then you can find the original script and instructions here.

So with a slight modification you can reverse the logic on this to make it an inclusion category. In doing so you can then make a custom category called "include" where you can manage your new front page widget to only include posts with that category tag.

Of course you can always download one of the many over blown and bloated plugins that will also do this and a myriad of other things, but I would rather have the single purpose solution.