File Upload with Server in safe_mode

It has nothing to do with safe_mode try this: login to your ftp make your wp-content folder 755 inside wp-content create a new folder called “uploads”, make it 777 (755 should also work) inside the control admin panel, go to settings>miscellaneous and on the first line enter “wp-content/uploads” as where your uploads will go to. … Read more

Add Column to Term Database

I have a feeling that modifying that table is not a good idea. I hadn’t done something like this, but if I needed to deal with considerable amount of meta information for terms I’d try to leverage Metadata API, which for terms would involve setting up separate storage table.

Programmatically change post templates? [duplicate]

Try this: while ( $query->have_posts() ) : $query->the_post(); if ( has_tag(‘tag-slug’) ) { get_template_part( ‘content’, ‘tag-slug’ ); } else { get_template_part( ‘content’ ); } endwhile; You would then need to create content.php and content-tag-slug.php with the appropriate content. You could also look into setting up Post Formats. A bit more work up front, but a … Read more

Change default comments form title [duplicate]

Please be clear for what u need to ask. As i approach to your query.you should first login to your admin panel.now click on appearance and then click editor option.here comes all the files of your theme directory.Look for comment.php. Just open it up and look for default message.Now this is the place where you … Read more

PHP Puzzle: Unique Styles with PHP loop

To are still call database inside the by get_post_meta() where you already have the values in $custom_fields variable. Try something like this: <?php $custom_fields = get_post_custom($post->ID); for ($i = 1; $i <= 4; $i++) { if(isset($custom_fields[“rw_location_$i”][0])){ if($i==1){ echo ‘<h1>’;} else {echo ‘<h2>’;} echo $custom_fields[“rw_location_$i”][0] if($i==1) {echo ‘</h1>’; }else {echo ‘</h2>’}; } } ?> If I … Read more

Fix My Custom Function: Remove Automatic

If I’m understanding your question correctly, I think adding remove_filter( ‘the_excerpt’, ‘wpautop’ ); around when you have add_filter(‘excerpt_length’, ‘Excerpt::new_length’); does what you’re looking for.

How to use custom fields to replace top-level parent title with an image using wp_list_pages?

I went to the #wordpress irc channel and was given the answer by Marko Heijnen. He grabbed the Walker Code from /wp-includes/post-template.php and added a few lines to it. /** * Extend the default page walker class to append class names for pages that * are parents. * @uses Walker_Page * * http://wordpress.stackexchange.com/questions/11821/class-parent-for-wp-list-pages * */ … Read more