Author: Frank
-
If Post is Older Than
12th door of our Advent Calendar, we are half through! Sometimes you need a query that satisfies the requirement that the advertising is displayed only if the article has reached a certain age. Who does not want to rely on a Plugin, we recommend the following little solution.
-
Change Wording for Password Page
If you create a password protected page in WordPress, you have the standard sentence: “My post is password protected. Please ask me for a password:”. To change this sentence without losing the changes after the next upgrade, just place into the functions.php of your theme the following code:
-
Display The Total Number Of Registered Users
Anyone who operates a community using WordPress, and would like to display the total number of registered users, can easily and quickly use the following small code snippet. It reads via SQL the content of the table “users“, and the numbers of IDs getting counted. This value simply gets wrapped around a text. $myusers =…
-
Custom Fields in your Feed
Since I work very often with custom fields and integrate various functions in my theme, I noticed something which I use extensively. I fill my feed exclusively with content from the custom fields.
-
Configure WordPress Trash
Check out our 7th door of our Advent Calendar. WordPress Trash will have it’s premiere in version 2.9. Now you can move every content, comment, post, pages, media and link to trash. It’s quite the same function as you know from other online applications or operating systems.