Software Engineering in WordPress, PHP, and Backend Development

Tag: Tag Sticky Post

Tag Sticky Post Updated To 1.2

Earlier this week, I received a following forum notification in my inbox regarding Tag Sticky Post:

I’ve downloaded the plugin Tag Sticky Post that will allow me to stick posts depending on which tag I’m currently browsing in my blog. The tag that will be checked is from the post’s custom_field “tag_sticky_post”. So, if I go inside the post and set post “A” to stick on tag “1”, if I go to the post “A” will be shown on the top with a custom css class (to highlight it). So far so good.

The problem is that the plugin can’t seem to work when I’m browsing archives for 2 tags at the same time, like the example I gave above:


You can view the entire post here.

This prompted an update to the plugin that I’ll discuss in more length in another post, but first note that this particular use case provided a perfect example of the type of enhancement that fit with the vision of the plugin.

So yesterday, I officially released Tag Sticky Post 1.2.

Continue reading

Category Sticky Post and Tag Sticky Post Updates

As the release candidates of WordPress 3.5 were being release, I spent time updating my plugins to make sure they were fully compliant with the latest version. Specifically, I’ve been trying to patch any outstanding bugs and issues before working on new features.

Last week, I updated both Category Sticky Post and Tag Sticky Post.

Since the plugins are so similar, I’m covering updates for both plugins in this post.

What’s New?

Because both plugins serve the same purpose save for the taxonomy on which they operate, the updates are nearly identical. That said, only a single new feature has been introduced:

  • Added a function to dynamically create custom.css if the file doesn’t exist.

Since users often want to style the look and feel of their plugin to match the color scheme of their blog, this particular solution works as it conditionally introduces a stylesheet that will only be added if it doesn’t already exist.

That means that if an update occurs, a user won’t lose their styles.

Other Updates

The outstanding issues that exist that are now resolved are:

  • Updating localization files
  • Updating function calls to use updated PHP conventions
  • Verifying compatibility with WordPress 3.5

Obviously, relatively minor stuff.

What’s Up Next?

As of now, there’s nothing on the roadmap other than making sure the plugins continue to be compliant with WordPress best practices. They are narrowly scoped plugins that attempt to solve a very specific need without feature bloat.

That said, I’m always up for suggestions and comments so feel free to shoot them my way.

How I Built The Category Sticky Post and Tag Sticky Post WordPress Plugins

Yesterday, I released two plugins for WordPress – Category Sticky Post and Tag Sticky Post – both of which serve the same purpose:

Allows authors to mark a post to be placed at the top of a specified archive. It’s sticky posts specifically for an archive.

The only difference is that one is specifically intended for category archives, the other with tag archives. And thus explains the clever names of each of the plugins.

As with my other plugins, I wanted to share my notes on what into building Category Sticky Post and Tag Sticky Post.

Continue reading

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑