Add comment feature to woocommerce Shop page

Woocommerce itself has an option to view comments from dashboard without editing the core. Please Read the documentation fully. But, You need to code little to view the comment option only on shop page. (Suggestion: Enable comment in all pages and do display:none on #comment where ever you don’t need it.)

How to have post count after each listed category

For showing category count on your loop – foreach($categories as $category) { echo ‘<li><a href=”‘ . get_category_link( $category->term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in: %s” ), $category->name ) . ‘” ‘ . ‘>’ . $category->name.'</a>&#32;&rsaquo; (‘. $category->count .’)</li>’; } And for showing count with wp_get_archives function, use show_post_count in argument … Read more

get_terms returns array starting at 4

Run get_terms like this: var_dump(get_terms(‘category’,array(‘hide_empty’=>false))); And then like this: var_dump(get_terms(‘category’)); You should be able to infer what is happening. The first should return the zero based array you expect, with neatly numbered keys. The second does not. The only difference being the hide_empty argument. If you really must have a zero based array just pass … Read more

Displays url’s twice and getting 404 errors after activating

Sounds like your Apache httpd.conf is missing a virtual host entry for port 443. Listen 443 <VirtualHost *:443> ServerName www.foo.com DocumentRoot /var/www/www.foo.com/htdocs CustomLog /var/log/apache/www.foo.com-access.log combined ErrorLog /var/log/apache/www.foo.com-error.log # Example SSL configuration SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCertificateFile “/var/www/www.foo.com/ssl/server.crt” SSLCertificateKeyFile “/var/www/www.foo.com/ssl/server.key” </VirtualHost> Source: http://wiki.apache.org/httpd/ExampleVhosts

WordPress media upload multiple images

Make sure the permissions for the upload folder are set correctly, and that none of WordPress’s files have been deleted. Also, try disabling all plugins. If it still doesn’t work, try adding this to the .htaccess file: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> Test and see if it will work on a small image, … Read more