Category: How To

Find and replace WPML language specific content in WordPress DB

Doing a hard “find and replace” to the WordPress DB is a delicate matter, but sometimes necessary. Whatever your reasons,…

How to add options to your theme

Every time more often you may find yourself needing to add options to a theme you are building or using….

How to add an admin account through MySQL

If you ever get yourself locked out of your WordPress site for any reason and can’t get back in here…

How to delete all pending posts

If you have a site where people can submit posts for approval or any other similar setup you might find…

How to get rid of the opening empty paragraph when suing apply_filters the_content

If you are using apply_filters('the_content', $ post->post_content);  to output your post content you might find that this function automatically ads and empty…

How to sort an archive page by custom field

As you already know an archive page basically shows a lists of all posts or custom post types (depending on…

How to have an archive page with no child posts for any post type

By default an archive page will list all posts for that particular post type, no matter if the post is…

If your short codes are not working on custom post types

If you found that your short codes are not working on your custom post types it is most likely due…

How to get_the_content() with line breaks

If you are using the WordPress function get_the_content() and are finding that it returns an endless paragraph of content with…

How to change the qTranslate-x language switcher text

If you are using qTranslate-x to run your multilingual site you will very likely want to show a language switcher…

How to add FTP users to your Amazon EC2 instance

This isn’t really a WordPress tutorial, although it can be useful to many of you who are running your WordPress…

How to add tags with commas in them

It is kind of useful that you can just type a bunch of terms into the tag box separated by…

How to add pagination buttons to the WordPress loop

If you are building your own theme or just a simple pate template you’ve probably noticed that although the WordPress…

How to set up dynamic titles for all your pages when building a WordPress theme

If you are developing a theme from scratch you’ll have to consider what value you want to give to the…

How to enqueue a dynamic stylesheet built on the go in WordPress

More often than not plugins and themes offer options that will result in CSS modifications. Now you can just print…

How to use the WordPress Color Picker in your Plugins and Themes

If you want to offer users the ability to pick a color through WordPress visual color picker interface on the…

Fix. WordPress is broken after upgrading to 4.2.3

If you just woke up today (July 23rd 2015) to find that WordPress site looks broken its very likely because…

How to get the featured image URL in any size

the_thumbnail() is definitely a very useful function, but sometimes you just need the featured image URL without all the structure….

How to avoid tracking specific users or users with a specific role in Google Analytics

Most webmasters chose to use Google Analytics to gain insight on their site’s traffic. Let’s face it, GA is ana…

How to use the WordPress media uploader in your plugins

In many cases you might want to use the WordPress media uploader in your plugins, whether your plugin provides some…

How to get a posts language specific content by ID (qTranslate-X)

[:en]If you are using qTranslate-X to run a multilingual site and need get a specific post content outside of the…

One way to exclude certain posts from the loop

[:en]If you want to exclude one or more specific posts from the loop for whatever reason here is one way…

How to build a custom excerpt

[:en]the_excerpt() function allows us to print the excerpt of a post, if the excerpt is not set then it will…

How to run a fully multilingual WordPress site

[:en]Unfortunately there is not one single plugin that will allow you to run a fully multilingual WordPress site, at least…

How to output the post content without images

[:en]The famous the_content() WordPress function returns the full content of each post, including both text and images, however sometimes we…

How to edit the search results page

[:en]Most themes will include a search.php file in the theme’s route, this is the file you have to edit to…

How to add a new custom image size to your theme

By default WordPress generates a series of thumbnail sizes every time you upload a new image. Small, Medium and Large…

© 2017 A WordPress Thing. Theme by Anders Norén.