This method requires you to add code to your WordPress theme files, so exercise caution. Continue reading “
Arrays in Ruby
How to Include Category and Subcategory in WordPress URLs
WordPress comes with two built-in taxonomies to sort your content. They are called categories and tags.
As you probably know, categories are typically used for more broader topics and can have subcategories. However, if you are using the default WordPress URL structure, then your categories and subcategories are not included in the post URLs by default.
Ruby String Operations
Last week we had a quick look at Strings in Ruby. Now let’s look at some more advanced sting operations.
Compile And Run C/C++ Code In Linux
How to Link to External Links from the Post Title in WordPress
Do you want to add an external link as post title in WordPress? Sometimes you may just want to share a link with your users. Instead of sending them to a post, you may want the post title to link to the other website. In this tutorial, we will show you how to link to external links from the post title in WordPress.
Strings in Ruby
Ruby has many ways of making strings, which are generally variations of the many ways Perl has of making strings. Double quotes allow values to be interpolated into the string, while single quotes do not. Most escapes are treated literally in single quotes, including the fact that \n
is treated as two characters, a backward slash followed by an n.
How To Set Up SSH Keys
SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. While a password can eventually be cracked with a brute force attack, SSH keys are nearly impossible to decipher by brute force alone. Generating a key pair provides you with two long string of characters: a public and a private key. You can place the public key on any server, and then unlock it by connecting to it with a client that already has the private key. When the two match up, the system unlocks without the need for a password. You can increase security even more by protecting the private key with a passphrase.
Manually Create a Sticky Floating Footer Bar in WordPress
A sticky floating footer bar allows you to prominently display your important content to users. This bar remains visible to users at all time, so they are more likely to click on it and discover more useful content.
This method requires you to add code in your WordPress files, so we will be using the File Manager plugin, already installed on the DkIT WordPress servers.
Oh, I Meant Objects
Here is a more honest version of the last Ruby example. Ruby is a fairly pure object-oriented language, which borrows a good bit from Smalltalk. Pretty much everything is an “object”.