Hack: A Beginner’s Guide to Editing Your Theme Functions File

The hacks at this site are usually accomplished by adding your own custom plugin or editing the functions.php file. But what if you have never done that before and have little or no coding experience? The easiest way to add many hacks is to use the WordPress Dashboard and edit the Theme Functions (functions.php file), simply adding your code to the end. Here is a video tutorial for beginners.

Continue reading “Hack: A Beginner’s Guide to Editing Your Theme Functions File”

Hack: Altering Post Titles Depending On Categories

So here is something I wanted to do for this site. I want to put “Tip:” before post titles that are in the tips category, and “Hack:” before titles that in the hacks category. I don’t want to just prepend the category name, as that was include the “s” and I don’t want it done for anything other than these two categories.

Continue reading “Hack: Altering Post Titles Depending On Categories”

Hack: The WordPress Command Line Interface

If you have command line access to your server, you can installed the WordPress Command Line Interface (wp-cli) and control your site by typing. You can do almost anything you wish through the command line, including modifying settings, writing posts, installing plugins, and moderating comments. In addition, you can do things that are difficult to do otherwise. For instance, you can backup your database, generate example posts, and create starting points for plugins, blocks and themes.

Continue reading “Hack: The WordPress Command Line Interface”

Hack: Show a Short List Of Posts By Tag

I love tags. You can use them for all sorts of things and not limit yourself to using tags only one way. For instance, I can tag something with a topic, and I can also tag it as being for beginners. Sometimes you may want to have a post and list some other posts that have specific tags. For instance, if you have a post on security, you may want to also mention how backing up your data is important, and then show a list of posts that have backup as a tag.

Continue reading “Hack: Show a Short List Of Posts By Tag”