In my 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 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.
Recently I modified the style of my tag cloud widget in a way, so it is less of a "cloud" and more of a list of tags with each tag in its own lines. With so much empty space on the right side of the tag, I wanted to add additional information to the visitors besides the name by showing the tag's count number of posts. I expected that the parameter for this behavior would already exist, but it turned out it doesn’t after looking at wp_tag_cloud function, which lists all parameters. Luckily, there is a filter available which we can use to make this work and is the topic of this article.
If you were making changes to the WordPress site theme and the admin bar (also known as a toolbar) suddenly disappeared, you are not alone. This happened to me too. I noticed that the admin bar at the top of the page was missing on the front-end after making some changes on my theme. The admin panel was still accessible through
/wp-admin/ path and inside the dashboard, the admin bar was not broken. In this post I will show you why this happens and how to bring it back.
Tag Cloud Widget gives visitors the ability to browse different topics based on tags on your site. Recently I wanted to customize it a little for this site and assumed the widget itself would give you these settings, but you can only edit the most basic parameters. Instead of widgets, we can display the tag using WordPress function wp_tag_cloud in the template, which supports more parameters. But what if we want to use the existing cloud tag widget? Luckily, there is a filter available that allows you to do that and is the topic of this article.
Yet Another Related Posts Plugin or YARPP is a very popular WordPress related posts plugin. It supports different display options, the most interesting among them is support for custom templates. YARPP comes with built-in templates from which we can choose, but we can add our own templates as well. This gives us the ability to really customize the look for the YARPP related posts. This article will show how to activate custom templates, how to edit existing or create new ones and finally it will show some useful code snippets that can be used in them.
Recently I was thinking of ways to get more comments on my WordPress blog and one way to achieve that could be making the email field optional instead of required as some visitors might be unwilling to share their email just to drop a comment. It turns out this is not as easy as it sounds. It seems the WordPress has Name and Email tied up as you can only make either both optional or both required. This post will show you, how to make email an optional field while leaving the name field required.
When customizing the look of the Contact Form 7 plugin in WordPress, you might want to add your own custom classes to either your form tag, form’s individual elements or validation error alert messages. Validation messages use
<span> tag that already contains classes defined by the plugin, so we could simply override those classes, but what if we already have our own classes that we want to use? This post will show how to add classes in validation messages and other elements in the CF7 plugin.