Articles of customization

Customizing Titles on the Fly with Code

I hope this question is easy. I want to customize my theme so that the post titles are created on the fly with code. For example, I might have a post where a price changes on the page 4 times a week, and I want to be able to change my to say: Get Product […]

Best Practice for Displaying Categorized Posts on Front Page

I am building a custom wordpress theme from a clients mockup. On the homepage there are 2 sliders, and 4-5 areas for recent posts of different types. I would like to have all the content be editable in wordpress what is the best way to create a post, apply some sortof value to it (category,taxonomy,tag,custom […]

How can I disable the update notice for non-administrators?

As I already told, I’m setting up a Blog for a friend. Next to not being him an administrator but an editor that can make changes to theme options) I have an additional question. I don’t want him to worry about updates as well nor do I want him bothering me, but the problem is, […]

If the image variable is specified, show image, if not no code

This should be simple, and yet everything I’m trying blows the blog up. I want to be able to specify an image variable in a custom field (that works great) but if that’s not specified, don’t include the image code. It’s creating a image missing error in some browsers (IE). Any ideas? Thanks, Bob

attach CPT data to a taxonomy

I’m trying to create a site where a ‘Game’ has a set of information (im thinking it will be a custom post type, with a ‘link’ field, ‘developer’ as a taxonomy, ‘price’, ‘release date’ and some other information. I want to be able to make a post, in a category (such as ‘reviews’) which links […]

Garbage in uploads folder

I have massive number of files in my uploads folder. Is there a way of identifying those which are not linked to any post? Note: some of those files are manually copied to uploads folder not via “media library”

How to make custom comment fields required and message field not required

I have a comment form that has name, email, brief, detailed and rating fields. The name, email, brief and rating need to be required, but the latter two are custom fields and I can only make them required through Javascript, but want to add proper WordPress/PHP validation to those fields. The detailed field is actually […]

Displaying multiple post types on home page

I’ve read several examples of how to do this but I still can’t get it to work – each time I use get_posts() it seems to only keep and display the first set of results. loop.php function home_index() { global $post; echo ‘<ul>’; $args = array( ‘numberposts’ => 3, ‘offset’ => 0, ‘orderby’ => ‘post_date’, […]

Let's Create Custom Field Template Documentation

I’ve been using the Custom Field Template plugin for a while now, and I really like it. It’s fantastic for adding quick custom field meta boxes in the wordpress back end. It handles TinyMCE, file uploads, repeating fields, date picker, etc. For really advanced stuff I do custom coding, but nothing beats rapid development with […]

How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?

I just upgraded from 3.0 to 3.1.2 and in the comments column under Posts in the WP Admin, this error keeps appearing for every row: Warning: number_format() expects parameter 1 to be double, string given in /path/mysite/wp-includes/functions.php on line 155 Can someone tell me how to fix this?