I’ve got a theme I can’t update and won’t let go

My suggestions would be: Overwrite with clean copy of WordPress. Try to output path constants and verify that theme is loaded from proper directory. Try disabling all plugins. Install configuration check plugin, like ServerBuddy, and see f anything lights up as horribly broken.

Getting and calculating averge value of custom fields of the same tag

If its a regular custom field you can add this to your archive.php: //before the loop $rating_count = 0; $total_rating = 0; //in the loop $total_rating = $total_rating + get_post_meta($post->ID,’your_custom_field_name’,true); $rating_count = $rating_count + 1; //after the loop: $average = $total_rating / $rating_count; echo ‘the average rating for this tag is: ‘ . $average; Update … Read more

Can two domains use the same database?

No, not in the manner that you’re planning on doing it. Everything relating to the site (including the design, selected theme, etc) is stored in the database. By having a second site attach to it, any changes made there will be reflected on the main site.

Advantages of dbDelta

The purpose of dbDelta() is both to create and update tables. If you don’t need updates then you can skip it. For keeping track of name you can simply follow WP convention and save name of your table in field of $wpdb object. Also note that you should consider there is possibility of code running … Read more