The problem.
As you probably know, WordPress lets you decide whether to allow readers to create accounts and sign in to your blog. If you want to increase your blog’s registered readers or would just like to reward existing readers, why not keep some content private, just for them?
Read More >>
Author: alyaspk Categories: CMS & Forums, Wordpress Tags: content, display content, display wp content, register, registered users, registered users content, users, wordpress content, wordpress users, wp content, wp contents, wp users
The problem.
Your blog has a lot of posts, but the posts aren’t all of the same type. To give special styling to one or more of your posts, you can take advantage of both the post_class() function and the post ID.
The solution.
To apply this trick, just open your single.php file, find the loop and replace [...]
Read More >>
Author: alyaspk Categories: CMS & Forums, Wordpress Tags: coding, coding technique, coding techniques, individually, individually post style, post style, style posts, wordpress, wordpress coding technique, wordpress post styles, wp coding, wp style, wp styles posts
The problem. Let’s say, for some reason, such as a hacking or upgrade problem, you have lost your blog data or it has become corrupted. If you have a backup (and I hope you do!) you will have to import it to your WordPress database.
Read More >>
Author: alyaspk Categories: CMS & Forums, Wordpress Tags: Databases, MySQL, restore data, sql, sql data, wordpress data, wordpress mysql, wordpress sql, wp backup, wp data base, wp database, wp restore
The problem. Post revisions, a new WordPress 2.6 feature, can be very useful, but they also increase the size of your MySQL database. Sure, you can manually delete posts revisions, but that’s very long and boring work.
The solution. The solution to this problem is simple: we batch delete post revisions by using a simple SQL [...]
Read More >>
The problem. While the tips in the rest of this post have been tested, you should definitely not try any of them without first having a proper backup of your MySQL database.
The solution. To create a manual backup of your WordPress database, follow these simple steps:
Log in to phpMyAdmin and select your WordPress database.
Once done, [...]
Read More >>
The problem. Like many bloggers, you probably want your readers to visit your blog more often or subscribe to your RSS feed. A good way to make them curious about your future posts is by listing the titles of your scheduled posts.
Read More >>
Author: alyaspk Categories: CMS & Forums, Wordpress Tags: schedule, schedule post, schedule posting, schedule posts, schedule wp, schedule wp posts, wordpress, wordpress hack, wordpress hacking, wordpress schedule, wp, wp content, wp hacks
The problem. The built-in wp_list_pages() and wp_list_categories() functions allow lots of things, but they do not allow you to embed a element so that you can use the well-known CSS sliding-doors technique. Happily, with some help from PHP and regular expressions, we can use this awesome technique on a WordPress blog.
Read More >>
Author: alyaspk Categories: CMS & Forums, Wordpress Tags: CSS, css hack, css sliding, css sliding effect, doors effect, effect, sliding door, sliding effect, wordpress effect, wordpress navigation, wp effect, wp navigation
The problem. If you’re a developer who often publishes code snippets on your website, you have probably encountered the following problem: a user tells you that the code you posted doesn’t work. Why? Simply because, by default, WordPress turns normal quotes into so-called “smart quotes,” which breaks code snippets.
Read More >>
Author: alyaspk Categories: CMS & Forums, Wordpress Tags: curly, curly quotes, curly wp, normal quotes, normal quotes curly, wordpress, wordpress curly quotes, wordpress hack, wp, wp curly, wp hacks, wp normal quotes
The problem. Using custom fields to display images associated with your post is definitely a great idea, but many WordPress users would like a solution for retrieving images embedded in the post’s content itself.
The solution. As far as we know, there’s no plug-in to do that. Happily, the following loop will do the job: it [...]
Read More >>
Author: alyaspk Categories: CMS & Forums, Wordpress Tags: get image, images content, images hack, post, post content, post content images, wordpress hacks, wp content, wp hack, wp hacks
Sometimes you only want to show posts that you’ve added a specific custom field to. A typical post loop begins like this:
Read More >>