Category Archives: WordPress

Show only sticky posts on home page in WordPress

To create a list of posts by WordPress query it is possible to filter it by adding a custom filter to the condition. For example, if you need to show only sticky posts, you have to take a list of … Continue reading

Posted in Programming, WordPress | Tagged , , , , | Leave a comment

Delete WordPress users with no posts by MySQL query

Back up your database regularly, and always before any upgrade. This query delete wordpress users (and they meta info) with no posts: This query select users with no posts: This query select users with no posts and no comments:

Posted in WordPress | Tagged , , , | 4 Comments