Colin Walker on the IndieWeb – Colin Devroe

Colin, I’d love to help figure out why webmentions aren’t working on your site if you have some free time. IndieWeb Summit is going on this week, we now have a bridged indieweb-wordpress slack/IRC channel, or ping me on Twitter @miklb.

Colin Walker on the IndieWeb – Colin Devroe (

Microformats2, WordPress and Featured Images Classes

In my exhuberance to post an image along with articles syndicaed from my site to Twitter, I hastily started adding the microformats2 class u-photo. I didn’t know better. It was brought to my attention that u-photo is meant for actual photo posts, where the image is the primary content. An experimental mf2 class u-featured for featured images would be more appropriate. A GitHub issue for was added, and today, u-featured support was added to <> for all silos.

Which brings me to WordPress. There isn’t an inherent way to add a class to a featured image when you attach it to a post from within the admin. However, I have found two different options. The first, would be to do it at the theme template level. In my case, I am now using the featured image for the image that appears above articles, and also used on the home page if in the most 3 recent articles. In my single.php template (actually template-parts/content.php but for simplicity, assume single.php) I have:

<?php if ( has_post_thumbnail() ) {
        the_post_thumbnail( 'latest-article-home' );
} ?>

where latest-article-home is the custom size. Here you can add your custom class.

 if ( has_post_thumbnail() ) {
        the_post_thumbnail( 'latest-article-home', array('class' => 'u-featured') );

However, you may want to just add the class to all featured images in which case, you can filter wp_get_attachment_image_attributes.

function mf2_featured_image($attr) {
  $attr['class'] .= ' u-featured';
  return $attr;

Why remove the filter inside the filter? I wondered the same thing, and the author of the Stack Exchange answer where I found this looking to filter the_post_thumbnail “So that it only runs once in the particular circumstance that that you want it to run”. Made sense to me and works as expected.

I’m still curious if the bridgy-publish plugin should have this filter for users who may not fully understand the differences and why their featured image doesn’t show up with their post,but having multiple options in the short term while that is decided is good enough™ for me.

Learning WordPress Comments Deeply – Why?

This post was originally intended to explain how I’m using the tools already built for WordPress to separate out likes, reposts and replies/comments. A follow-up post is forthcoming

When most people think of comments, they think of spam and trolls. I know I did. But then I discovered the IndieWeb, a movement to create interoperable components that would allow a more robust way of interacting with your site and the rest of the web. Most of the content published here is now syndicated out to “silos”, in my case primarily Twitter 1. And with that, if someone replies, retweets or likes that note or article, that interaction is stored in the WordPress database and displayed with comments.

Which leads to a broader discussion among WordPress users participating in the IndieWeb – How to better manage the different types of interactions? David Shanske, who has being doing yeoman’s work in building and contributing to the plugins that make IndieWeb possible with WordPress, outlined some of the hurdles and how to improve WordPress comments for the IndieWeb.

While I admit I do not see the utility in having a permalink for a comment, I also admittedly haven’t looked closely at the underlying code to know where the benefit is. I definitely see the need to fully flesh out custom comment types and would like to work with him as an evangelist to see who/where in the WordPress community we can lobby to put that in motion. I’d definitely like to contribute any code I can, as well as help with documentation.

When I discovered WordPress twelve years ago and started this personal blog on it, WordPress was a tight nit community of users dedicated to the democratization of the web. I still believe there are participants in the project where that is a guiding principal. I have no doubt Matt Mullenweg believes in that principal still. Which is why I have confidence that if framed in the right way, the IndieWeb desires to expand on the code managing and storing comments can be a priority for the greater WordPress community.

There is definitely a laundry list of wants and needs to better allow for a WordPress site be IndeWeb out of the box. A big one would be support for microformats 2. Custom comment types as outlined by David would be another. And I’m still only scratching the surface.

If you are interested in more about the IndieWeb or how we can move the needle in WordPress, I’d love to hear your response.

  1. I’m weaning myself off posting natively to Twitter, but that’s an evergreen statement. 

A Few Thoughts About WordPress REST API and Core

There has been much written about the ~drama~ discussions surrounding the WordPress REST API and inclusion in core. Or exclusion, depending on who’s take you are reading. 1 Suffice to say, the gist I’ve gathered is that there are two competing perspectives, one side wants to incrementally add the API, the other wants a fully fleshed out, complete API before inclusion in core.

I guess my 2¢ on the matter is this—the core tenet of the WordPress Foundation is “to democratize publishing through Open Source, GPL software.” From what I’ve gathered reading on the subject, the REST API team have the publishing portion of the API covered and ready for inclusion in core. The parts that would come (much) later would be things like the customizer, file editing, more site management tools, less about actually publishing.

If democratized publishing is still the guiding principle for WordPress the project, then I don’t see how there is any debate. Opening up the methods to publish beyond what has been the only means available for basically the entire life of the project seems like a no brainer to this guy who’s been around it for 11 years this year. No one will truly know how much is opened up until it is in the hands of creative developers and then in the hands of content creators.

  1. I’m specifically not linking to any of the hot takes on the subject.

WordPress 2.0 Beta

Everyone in the WP realm is talking about it, and soon the buzz around the net will too, Matt and co. quietly released WordPress 2.0 Beta 1 this afternoon. Some have wondered the jump from 1.6 alpha to 2.0 beta, but to me, it seems a logical marketing choice. The buzz among the net the second half of this year has been web 2.0. Why not cash in on the hype? I mean, apps like WordPress helped fuel that buzz, that web application movement, why should they not get in on the action? Web apps like Flock, technorati, delicious, all rely on more tech savvy users, most who now have a blog somewhere. Heck, Flock tied itself into by working out invites to for those signing up for the developer’s release. So I say to Matt, and those who made the decision, smart move, and may the 2.0 wave continue to further the popularity and development of WordPress. And thanks for sharing.

Alex King asks, Should I Host Another WordPress Theme Competition?

So with the impending release of WP 1.6, Alex King ponders the pluses and minuses of hosting another theme contest, and asked for opinions. So as someone who came along WP as he was starting his second contest, may I add that the primary thing I remember from that contest, and perhaps should be consider if a third comes along, is the delineation of where one theme ends and another begins. If I take Kubrick, put a new header on it, change some fonts and colors, is that a new theme? I realize that is a fine line, but with a panel in place to screen a theme that’s hosted on the contestants own site, a consensus can be reached as whether or not it’s original.
Second suggestion, phases of judging. Contestants host the design, and each category is narrowed, to say, 3. At that point, the theme is then put on a clean install to test the safety, and code. Thus eliminating some of the worries.
But I will say, the second contest was surely a motivator to get more involved with WP and explore its community, which subsequently opened my eyes to many more things web related. Where my knowledge is now, can only be contributed to my exposure to WP at that point. And I can only hope that 1.6 and a theme contest does that for someone lese like my self. So I encourage and will support, be it $$ or time, to see that another does happen.

Bad Behavior 2 Roadmap

With all the buzz around the net discussing Akismet, which, to me, is just another hype for, I came across IOerror’s discussion of his roadmap for Bad Behaivor 2. Again, people are praising Akismet as the second coming of Christ, and if that is the case, then the combination of Spam Karma and Bad Behavior is the first coming. Along with the roadmap, IOError discusses the reality of what it will take for him to be able to knock out the new version, CA$H. Quite understandable, hell, this blogger had to go back to his prior profession for the exact same reason. But the case of Bad Behavior is simple, if 100 bloggers such as this one has already done and donated a mere $10, we would in essence be hiring a full time spam fighter. So let this be a challenge to other bloggers, jump on the bandwagon and use Kismet, or support the developer who set the standard in the first place. I’m from the school of “if it ain’t broke, don’t fix it”, so therefore I’m not disabling my two working anti-spam plugins to try the flavor of the week, I’d rather see the BB2 come down the pipe a month or so from now. It’s up to you now.

Well, It’s a Start

I’ve managed to go through my first 140 or so posts and add tags via the Ultimate Tag Warrior plugin, so the concept of “categories” is now all but moot here at Mindless Ramblings. Hence the tag “cloud” in the middle. I’ve recently purchased a new camera phone with the hopes of moblogging some, but the flickr gallery plugin I’m trying to use is beta, maybe more like alpha, but hopefully I’ll get it to work, until then, don’t click the gallery link. I did do a little modification to the squible default style.css, but aside from a different image on the lead post and some colors changes, it’s straight out of the box. It’s such a different theme, that until I work through it more, it’s kinda hard to start changing things. Again, stay out of the gallery please, it’s not quite ready, but I may need it live to help trouble shoot the install.

Pardon the dust

In an attempt to get back to blogging, and fishing, and just about anything else healthy I can do to avoid hanging out late at night drinking Jagermeister and sitting in a smoky room, I’m going to change themes, and try to focus on the laptop and online more. So if things go wacky or seem odd, just contact me with a heads up. Oh, and if you see anything new you like, you can always comment on that also.

Just a test, move along…

So I can post with this contraption, but I don’t see all the options. I see a thing for categories, but I can’t see how to add them. This wouldn’t be very handy if I’m stuck with the generic default category. I do like the idea however, of having a single interface that I post from. So my WP Station blog, cookingwith, etc. all come from here.

EDIT OK, so I quit, and reloaded MarsEdit, and was able to “refresh” my site, and categories loaded. Good. I’ll add my cooking site later, to see how that handles a multitude of categories. I’m also curious about tags, but that’s for another post. I’m starting to like this “blogging client” situation.

Blogging with MarsEdit

So I’ve been looking at some Mac OS X apps, for various tasks. I’ve started using RSS more and more, and I’m not too keen on the Sage extension for FireFox. Mainly because of screen real estate on the ol’ ibook. NetNewsWire seems to be the choice, and through that, I’m playing with Mars Edit, a blogging app. So this is my fist attempt at blogging outside the web interface. If it works out, it may be an easier way to post, if nothing more than the built in spell check. We’ll see about the other features. Downside is it’s not a free app, so it better well prove to invaluable, or when its trial runs out, to the curb with it.

Shameless Plug #1001

So I started the WordPress “fan” site recently, WordPress Station, and recently got it its own domain. And while surfing around, I found an open source design that was a hack of Apple’s brushed metal design. There was a brushed metal theme for WP when I first started using it, but it’s disappeared. Not sure why, but I figured there might be a few who’d want to give it a run. Therefore, I’m in the process of porting it to WP, and have it in “beta” over at WPstation. Plus, I’ve been busy working with an upstart hosting company, and will begin offering a great deal on a basic hosting package VERY soon.
Now if I could only motivate myself to post over at cookingwith more…

As if I Didn’t Have Enough To Do

So I have this personal blog, my cooking blog, school starting, and going back to work full time in a kitchen a couple months from now, I’ve started another blog, this one specific to the WordPress community. Plugin announcments, new themes, WP news in general. It came about as I’m working with some developers who are beginning a hosting company, with some added features.
Continue reading “As if I Didn’t Have Enough To Do”

"Blank" WordPress Theme

I’m offering up an updated, beta version here.

So, as I’ve begun designing WordPress themes, I found the tutorial over at Urban Giraffe invaluable. They walk you through the dissection of the default Kubrick theme, how to strip it down to bare bones, and start with a blank style sheet. Now that I’ve done that a couple of times, I decided it would be nice to have all the work done, and be able to have all the template files cleaned, as well as a style sheet with all the divs and classes there, simply without the style.
Continue reading “"Blank" WordPress Theme”

“Blank” WordPress Theme

I’m offering up an updated, beta version here.

So, as I’ve begun designing WordPress themes, I found the tutorial over at Urban Giraffe invaluable. They walk you through the dissection of the default Kubrick theme, how to strip it down to bare bones, and start with a blank style sheet. Now that I’ve done that a couple of times, I decided it would be nice to have all the work done, and be able to have all the template files cleaned, as well as a style sheet with all the divs and classes there, simply without the style.
Continue reading ““Blank” WordPress Theme”

A New Goal?

So CNN has this feature in their afternoon politics show, where these two chicks are surfin’ the web for blogs and what’s being discussed about the current events. So I realize all they are really doing is searching Technorati for keywords. And though I know Technorati pulls categories as tags, a politics rant may not show up in a search about Tom DeLay. Thus, I installed a tag generator for the site (via a WordPress plugin, Jerome’s keywords) so that I can start adding tags to my posts, and possibly get some hotty on CNN to read my post on air. Is that not the most geeky thing to strive for?