AaronRutley.com

Experiment: ACF Meta

Posted in WordPress on the 18th of March 2016 by @aaronrutley

I was chatting to another developer recently about alternatives to the popular WordPress Search Engine Optimisation plugins. The popular plugins are great and have loads of features, however for some small sites they might be overkill.

So we’ve started working on a simple WordPress plugin to experiment with replacing the popular ‘Search Engine Optimisation’ & ‘Social Optimisation’ type plugins, at the moment our plugin is called ACF Meta and you can find it on GitHub.

I’ve decided to use ACF to register the custom meta fields so you’ll need this installed and activated. Using ACF for a couple of fields like this is overkill however it’s allowed us to experiment very quickly. I’ve registered three fields at the moment: title, description and image.

Once the plugin is installed you’ll see some custom fields like this:

Once the plugin is activated the following will appear in in the  <head> section of your pages.

<title>Experiment: ACF Meta - aaronrutley.com</title>
<meta property="og:site_name" content="aaronrutley.com" />
<meta property="og:url" content="http://aaronrutley.com/experiment-acf-meta/" />
<meta property="og:title" content="Experiment: ACF Meta - aaronrutley.com" />
<meta property="og:image" content="http://aaronrutley.com/aaronrutley.com/wp-content/uploads/2016/01/cover-5.jpeg" />
<meta property="og:description" content="I've created a simple WordPress plugin called ACF Meta to
experiment with replacing the popular WordPress SEO type plugins." />
<meta name="description" content="I've created a simple WordPress plugin called ACF Meta  to
experiment with replacing the popular WordPress SEO type plugins." />

I’m using it on my blog right now – you can take a look if you view source ; )

This will work best if you have <title><?php wp_title(); ?></title> in your theme header file.

Also – If you’d like to contribute please feel free to get in touch via GitHub!

Share this post

Menu