Google Fonts, since being released a few years ago, has been a web developer’s dream. Instead of relying on a small number of fonts or an expensive system to manage custom fonts, you can instead use Google Fonts to put some fonts on your site. With recent editions of a recognition of the font-display: swap;…
Archive for the ‘Tutorials’ Category
How To Get a WordPress Page Permalink By ID
When building themes, you occasionally need to be in a situation where you link to something within your theme that is a page or a post within your site. Ideally you want to avoid it if you can, using WordPress’ ability to position things correctly using menus, or widgets, or something within the database. However…
Can you Have Multiple Templates For A Custom Post Type?
A question recently came up on a project we were on which was “Can we have multiple templates for the same custom post type?”. This post type was fairly similar to pages and in order to maintain URL structure and not screw about with permalinks having something like that would have been incredibly useful. Turns…
How To: Include Custom Fields in Post Titles & Descriptions in Yoast Automatically
Following on the previous post about adding a location and a date to the post URL automatically, we’re going to be looking at adding custom fields in post titles and descriptions. The sort you can see in Yoast Snippets. This will saving us time in optimising the post. We are using Yoast WordPress SEO to…
How To: Include Custom Fields in WordPress Permalinks upon Publishing a Post
Take a look at the WordPress Talks section of my site. On that section I generally list all the public talks I’ve done. Some have videos, some just have a slide and a brief introduction. I use this to remember what I’ve said and where. It isn’t wholly complete – a few talks have been missed off,…
How to Remove Related Products in WooCommerce
By default, WooCommerce often shows related products beneath each product on a single page, you can see it using my child theme of choice: Understrap. This is the default option within WooCommerce, and there’s no easy way to turn off this unfortunately. It does seem to be present on all sites. It’s probably with good…
How To Set Up eBay Feeds for WordPress
One plugin of mine that seems to be popular is eBay Feeds for WordPress. It’s a plugin that will allow you quickly and easily to embed eBay listings on your site. It works well and I’ve had a lot of great feedback, but it can be a bit tricky to set up. In this post I’ll…
Using Gravity Forms & Custom Post Types Together
Ah Gravity Forms. Shall I compare thee to a summer’s day? Probably not. But I’m a huge fan of the plugin that gives so much power in building forms. I’ve used it for so much in my time in WordPress, that right now I’m confident if I need anything from a booking form to a…
Your WordPress Site is Not Secure in Google Chrome 68? Here’s Why
If you have a WordPress site you may have noticed that recently you’re starting getting “not secure warnings” in Google Chrome 68. I’ve previously covered other not secure warnings in WordPress, but this one is an update of the previous changes rolled out in January 2017. This post will detail what to do if your WordPress…
How to centrally align oEmbeds (including in Gutenberg)
Probably one of my favourite features in WordPress is the oEmbed features. oEmbed is a technology that allows you easily embed content from other sites that use oEmbed technology. Content such as YouTube videos, Twitter Tweets or Spotify playlists can be easily embedding by just dropping a link onto a page, but with the ease…