get_avatar not working
You forgot to echo it: <?php echo get_avatar( $user->user_email, 150 ); ?>
You forgot to echo it: <?php echo get_avatar( $user->user_email, 150 ); ?>
To fire a hook you can use following functions: do_action – executes a hook created by add_action. do_action_ref_array – execute functions hooked on a specific action hook, specifying arguments in an array. This function is identical to do_action, but the arguments passed to the functions hooked to $tag are supplied using an array. If you … Read more
The correct .htaccess for a multi-site setup looks like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule . index.php [L] Note the rule for files: That’s how WordPress locates your images. You need also a … Read more
It all depends on how you’re trying to do it. When it comes to filtering results, i usually setup the form to use $_GET and filter the results when the page loads again: if (isset($_GET[‘term’])) { $term = $_GET[‘term’]; } else { $term = ‘defaultTerm’; } if (isset($_GET[‘childterm’])) { $childterm = $_GET[‘childterm’]; } else { … Read more
Just tell the loop to continue if the custom field is 0 or blank. if ((get_post_meta($post->ID,’60mins’,true))||/*however it returns as blank*/) { continue; } This will prevent it from being factored into the average.
If you are trying to print children of a category, this should be sufficient: <?php wp_list_categories(‘orderby=id&show_count=1&use_desc_for_title=0&child_of=”.$term_id); ?> Details here: http://codex.wordpress.org/Template_Tags/wp_list_categories
There are quite a few ways to do this, here are a couple: Use a plugin to control which Widgets display on which Pages/Sections. This is a plugin I’ve used which works well. It adds a “hide/show on….” checklist to each widget where you can select where the widget will display. Works great, but if … Read more
Have you tried: deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). switching to the Twenty Eleven theme to rule out any theme-specific problems. resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still … Read more
The thumbnail image path is the path to the original image from which the thumbnail was created. If you are in the File Upload screen you should be able to click on the File Links To: File URL, or Gallery Links to Image URL for galleries, which should automatically fill the text area with the … Read more
With help from a dev at WordPress Questions I got this solved. In wp-content/plugins/cforms/cforms.php we added require_once(dirname(__FILE__) . ‘/html2pdf/html2pdf.class.php’); which loaded all the necessary data from the folder html2pdf which has all the files based on code from html2pdf.fr Further in the same file after $newcontent .= substr($content,$last); we have code to pdfy the code: … Read more