Apologies for the blog-geeky post. Not even Visual Reflux related blog-geeky.

I have a lot of indices over The Stop Button. Until a few weeks ago, all have them have been manually maintained. For about fifteen years. Well, wait. Going back to the first Sandvox Stop Button so probably more like thirteen years. Fourteen years? I could figure it out on the Way Back Machine but not right now. I’m going down enough of a blogging rabbit hole here.

Last year I started the “By Rating” index, which I’ve always thought about having but never put together. I got it together, then I never updated it because it’s not in my workflow. I have an Applescript to open up all the pages to edit. I don’t use MarsEdit for it because… reasons. Probably because I’d need to refresh the entire blog before editing the pages every other day. Fingers crossed there’s a post or page specific refresh some day. No matter what I’ll need to update the main index manually.

So with the ratings index, I kind of wanted to just get rid of the page since I knowingly wasn’t updating it. But it gets hits. It’s way more popular than the “By Country” index, for example. Only I didn’t want to update it. I didn’t want to figure out the workflow.

Luckily, shortcodes. WordPress shortcodes are these, well, short bracketed statements that, umm, expand to code?

For example,

[display-posts category="cult" posts_per_page="100" include_date="true" date_format="j M Y"]

Instead of that bracketed statement, there’s a nice descending list (by date) of all the posts in the Cult category. I initially didn’t like the display-posts thing because of a UX issue, then realized… The Stop Button is a hot mess of UX issues I don’t care about, why not have one more, which led to the “Index by Ratings” page updating on its own, then the “Index by Year” page, now I’m putting together the “Index by Genre” page. “By Year” is possible to convert, “Actor,” “Director,” are possibly possible; “Country” and “Series” are impossible. The problem with the last four is versus a self-hosted install. So I could automate Visual Reflux indexing to my heart’s content only… I don’t have any plans to index Visual Reflux.

I’ve known about shortcodes for years and probably use them somewhere on Stop Button already and forgot about it (maybe a video link?), but the display-posts one is working out. Automated indexing is awesome. Especially after fourteen years of the other way.