Recently, I was writing an article containing programming code on the WordPress website. The code had single and double quotes in it and noticed that when I did Copy and Paste from the article into a code editor and then try to run the code, it threw syntax errors. It turned out that WordPress was automatically changing some characters when displaying the code syntax. In this article, we will learn how to make sure that the "Copy and Paste" of quotes work without a problem.
There are many WordPress plugins for highlighting programming code. Until now, I have used Crayon Syntax Highlighter on this blog and was satisfied with it, but at the time of the writing, the plugin was last updated more than 2 years ago, so I started looking for the non-plugin alternative. In the end, I chose to use Google code-prettify library. This article will show you how to implement this library into the WordPress and how to make it more versatile by using few CSS tricks.
Recently I had some issues with EasyPHP development server, so I decided to install PHP, Apache & MySQL manually on my local machine. After everything was set up, the WordPress website on a localhost loaded without any issue, but when I clicked on any of the post or page links, I got an error telling me that the requested URL was not found. This article will show how I fixed this issue.
When using a WordPress qTranslate-X plugin on a website, you might also want to translate permalinks (also known as slugs). Currently, qTranslate-X doesn't support this feature, but we can use other WordPress plugin named qTranslate Slug that does exactly that. In this article, we will explore the widget and the settings available for qTranslate Slug. Finally, we will examine, how to use it.
The qTranslate-X is a free popular plugin that adds support for multiple languages on a WordPress site. I really like it, but the only issue I have with it is that the default image flags for the Language Menu are not that good. In this article, I will first show you different types of Language Switching Menu we can choose from and the two ways we can display them. Finally, we are going to replace those default images with our own.
Recently, I installed WordPress on my local machine running Windows 10 to work on a WordPress theme. The WordPress site was mostly working without a problem except in a dashboard section of the site, where it was having some issues with updating. When I tried to update plugins to a newer version, the update failed, giving me, there were "no working transports found" message. Fortunately, the fix is simple and it should also apply if you are using EasyPHP or WAMP development environment.
In my previous article about WordPress tag cloud widget, I showed you how you can display a count number for each tag. But what if you want to limit tags that are shown by displaying only the most popular tags and hide those with low count values. The tag cloud in WordPress doesn't have the parameter for that behavior, but by using another parameter, we can achieve the same result. In this article, we will add the code that will show only those tags in the tag cloud, that have count parameter value of 3 or more.