About Ash

This author has not yet filled in any details.
So far Ash has created 18 blog entries.

August 2014

Order WordPress Custom Post Type Lists by Column

By |2014-09-10T21:45:38+01:00August 22nd, 2014|Snippits|

By default, posts are sorted by the date published. Paste the code below into your theme's functions.php file to order the posts differently //order custom post type posts list in admin function posts_for_current_author($query) { if($query->is_admin) [...]

Remove Unused WordPress User Roles

By |2014-09-10T21:44:26+01:00August 13th, 2014|Snippits|

To simplify the user roles option for your client, remove any unused roles from Wordpress. Paste the following code into your them's functions.php file. //Remove unused user roles remove_role('subscriber'); remove_role('author'); remove_role('contributor');    

Edit The Number Of Related Products on WooCommerce Single Product Page

By |2014-09-10T21:44:13+01:00August 2nd, 2014|Snippits|

By default Woocommerce displays 4 related products on your website's single-product page. Modify the output using the function below. Paste the code below into your theme's functions.php file. // Redefine woocommerce_output_related_products() function woocommerce_output_related_products() { woocommerce_related_products(6,3); [...]

July 2014

Load More Posts