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.
Continue reading “Tip: Adding Images With Text Wrap”
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”
So there are lots of snippets of code out there for excluding categories or tags from searches. But what if you just want to exclude a specific post or two, and don’t want to create a whole other category or tag to use for that?
Continue reading “Hack: Exclude a Specific Post From Searches”
So you want to create a utility page that accesses things on your site, but without all of the overhead of your theme, headers, etc. You can create any PHP script and simply include all of the WordPress functions to access as you wish.
Continue reading “Hack: Using WordPress Functions Without WordPress”
When you view the source of your WordPress pages, you may notice that the version of WordPress you are using appears in the header. Some believe this can be a security risk, as exploits that work on specific versions of WordPress could determine you site’s version and use that to figure out how to attack it. I haven’t seen any real threat, though. But you may want to remove it anyway.
Continue reading “Hack: Remove the WordPress Version Number From Your Site”