In a typical WordPress theme you output the entire list of comments for a Post/Page by using the function wp_list_comments(). This doesn't offer much by the way of customizing what HTML markup gets generated for that comment list. To write your own … [Continue reading]
Custom Loop/Query Based on Custom Fields
If you design or develop WordPress themes or plugins, there's a good chance that someday you'll need to make a query for custom meta fields. These are those completely custom key/value pairs that you can attach to any post, page, or custom post type. … [Continue reading]
Custom Database Error Page
Put a file called "db-error.php" directly inside your /wp-content/ folder and WordPress will automatically use that when there is a database connection problem. <?php // custom WordPress database error page header('HTTP/1.1 503 Service … [Continue reading]
Change Avatar Size
The wp_list_comments function has a parameter to change the default (48px) size to anywhere between 0 and 80px. wp_list_comments('avatar_size=80'); … [Continue reading]
Bloginfo Shortcode
The bloginfo() function in WordPress gives you access to lots of useful information about your site. See the complete list. To access all these values from inside Page/Post content itself, we can make a shortcode to return the values. Add this to … [Continue reading]
- « Previous Page
- 1
- …
- 5
- 6
- 7
- 8
- 9
- …
- 20
- Next Page »