29/07/2017

The archive contains older posts which may no longer reflect my current views.

# While I'm in a "cleaning up" frame of mind I decided to get rid of the Ultimate Category Excluder plugin I was using to split old posts into an archive.

Instead, I now separate them using a simple if statement at the same time that I exclude microblog posts from the main feed:

if( !is_archive() ) {
  set_query_var('category__not_in', array(81));
  // Exclude from all but archive pages
}

Having a plugin installed just to achieve that is wasteful and an overhead I can do without, but it also makes me realise how much has changed since I first added the microblog.

# Apologies if you got a bunch of microblog posts repeated in the RSS feed while I sorted things out.

1 comment: click to read or leave your own Comments

# It looks like the changes I made were conflicting so I've reinstated the category excluder plugin for the time being until I work it all out.

# I think I've fixed it. Had to change the condition to if( !is_feed() && !is_archive() ) as it was overriding the statement to exclude microblog posts from the main feed. Silly mistake.

# An interesting but unintended consequence of the change is that archive posts were also hidden from the back end.

Out of 842 total posts 546 could be seen. Not what I was after but it did mean that I could easily compare the number of posts before and after the blog reboot in March last year.

I'll need to add a !is_admin() condition to the logic.

Test Audio 1

This is a quick test of a post with an audio enclosure that's not a normal microcast post. The enclosure doesn't say anything interesting but you can listen if you like ?

I'm looking to be more flexible with what I do with audio so exploring different ways of posting.