Undefined index: ratings_score …/wp-postratings.php on line 994

when ever you expect something to be an array, it’s good practice to check to see if it is first before proceeding. so the new code might read like this: if(is_null($post_ratings_data)) { $post_ratings_data = get_post_custom($post_id); if ( is_array( $post_ratings_data[‘ratings_users’] ) ) { $post_ratings_users = intval($post_ratings_data[‘ratings_users’][0]); $post_ratings_score = intval($post_ratings_data[‘ratings_score’][0]); $post_ratings_average = floatval($post_ratings_data[‘ratings_average’][0]); } }

Parse error: syntax error, unexpected [closed]

The problem is that you have two strings that aren’t actually being appended together. Try replacing return $count. ‘<span class=”vwbx”>Views</span>”<span class=”vwbx”>views</span>’; With return $count. ‘<span class=”vwbx”>Views</span>’.'<span class=”vwbx”>views</span>’; (note the added period in the centre). Or instead, remove the two quotation marks from the centre: return $count. ‘<span class=”vwbx”>Views</span><span class=”vwbx”>views</span>’; That should work 😀 EDIT In … Read more

Getting 404 error on homepage only

It looks like you’re using Nginx which is very likely your issue. Nginx has a great writeup on what you need to do to with WordPress: http://wiki.nginx.org/Wordpress Other useful resources: https://stackoverflow.com/questions/3695387/nginx-404-not-found-page-for-permalinks https://stackoverflow.com/questions/3255446/wordpress-3-0-nginx-permalink-404-problem http://wordpress.org/extend/plugins/nginx-compatibility/other_notes/ Let me know if this works! Cheers~

contact form 7 database short codes [closed]

The Codex page for is_plugin_active explains what your problem is: NOTE: defined in wp-admin/includes/plugin.php, so this is only available from within the admin pages. If you want to use this function from within a template, you will need to manually require plugin.php, like this: <?php include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); ?> <?php is_plugin_active($plugin) ?>

download count29.php whene loading site [closed]

Never ignore errors, errors are for fixing. A quick google of this gives me this malware: http://sucuri.net/malware/malware-entry-mwiframehd37 Basically your site has been hacked/compromised. You need to look at your security, make sure everything is up to date and watertight, and check your code for nonvalidated data and unchecked file processing.

Trying to display terms from custom taxonomy within function

Function get_term_by returns object or array (based on $output arg) on success and false if failed. But you treat it as string and try to concatenate it. So your code should be following: $cat = get_term_by(‘id’, 17, ‘project_cats’); $html_content .= “<h3>” . rgpost(‘input_1’) . “</h3>”; //Title $html_content .= “<p><strong>Category:</strong> ” . rgpost(‘input_5’) . ” | … Read more