I hate using someone else’s URL shortener. Partially because it hides your domain name in the link and there is no reason anyone should trust it. But also because sometimes URL shortening services do bad things, like redirect product links to competing stores. Yep. I’ve experienced it.Continue reading “Hack: Use Your Post ID Numbers As Shortlinks”
Like a lot of people, I freaked out a bit over GDPR right around the time it started. Even though I am in the United States and don’t have any business location in Europe, there were lawyers blogging and scaring people into thinking that the EU was gonna start sending stormtroopers into the USA to detain bloggers who so much as kept a simple server log.Continue reading “Hack: Better Comment Notification Text and Removing Email Address Data”
Anyone the least bit concerned about online security, and we all should be, uses two-factor authentication for our online accounts. Yet often WordPress users forget about their most valuable asset — their WordPress site.Continue reading “Tip: Two-Factor Protect Your WordPress Site”
In the last tip I showed you how to embed a single Instagram picture into a WordPress post. But what is much more useful is to be able to embed the most recent items from your feed. That way you can update your Instagram and the new images will automatically show up on your site.
I showed you how to embed a single Instagram picture into a WordPress post. But what is much more useful is to be able to embed the most recent items from your feed. That way you can update your Instagram and the new images will automatically show up on your site.Continue reading “Tip: Embed Your Instagram Feed Into Your Post, Page or Widget”
If you use Instagram and want to drive more traffic from your WordPress site to your Instagram account, you can use the simple Embed function that Instagram provides. Not only will this place the photo on your page, but it puts it in an Instagram frame with a Love button, links to your profile and other Instagram features.Continue reading “Tip: Embed an Instagram Picture Into Your WordPress Post”
You see webpages everywhere using things in their URLs like ?something=xyz. These parameters are then passed into the page and used for various things. You can easily use this same technique to pass in information to your WordPress posts.Continue reading “Hack: Look For And Use a URL Query Parameter”
If you use custom fields, and you add some of them to each post you create, it can be a pain to manually select and add each custom field. Plus it is easy to forget. Here is a bit of code that will automatically bring up those fields and even pre-populate them with default values.Continue reading “Hack: Set Default Custom Fields For New Posts”
If you are one of those developers that loves playing with htaccess you know you can do all sorts of redirects there. But not everyone can edit that file. And even if you can, there is something to be said for leaving it alone and including all of your customizations in your own plugin or functions.php file.Continue reading “Hack: Redirects Without htaccess”
When you add images to your posts with the Block editor, you can choose to have text wrap around the image, with the image on either the left or right. It seems counter-intuitive, but to wrap the image on the right you need to place the image first and the text after. Then you can adjust your image size to make it fit as you like.
Depending on what type of site you have, some of the blocks available are never going to be used. You can limit your writers to just a few blocks pretty easily with code like this in your functions.php or custom plugin.Continue reading “Hack: Limit Which Blocks Writers Can Use”