How to edit homepage in WordPress?

If it really is the header you want to edit, you can find its source here: /wp-content/themes/Wallbase/header.php Depending on A) what it is exactly that you want to customize, and B) how your theme is set up and what options it comes with, you might want to try the Theme Options, which can be found … Read more

Replace the post count on wp_list_categories with “Has Posts” instead of number and “No Posts” if none

Add the below in your theme’s functions.php. It should work the way you want function my_list_categories( $output, $args ) { $output = str_replace( ‘(0)’, ‘(No Posts)’, $output ); $output = preg_replace( ‘/\((\d+)\)/’, ‘(Has Posts)’, $output ); return $output; } add_filter( ‘wp_list_categories’, ‘my_list_categories’, 10, 2 );

Add to cart option to have multiple of 6

In the bleeding edge of WooCommerce 2.1 you can filter woocommerce_quantity_input_min and woocommerce_quantity_input_step directly. That should get you 6,12,18, etc. I have no idea if these filters are in WC2.0.?. Note the $product object is passed to the filter in case you don’t want this to be a universal change. You can get the bleeding … Read more

Get all first images of posts in same category

You can do this, and it isn’t that hard though could be a lot of work for the server. The code, a bit simplified, should look something like this: $cposts = wp_list_pluck($wp_query->posts,’ID’); // var_dump($cposts); // debug $args = array( ‘post_type’ => ‘attachment’, ‘post_mime_type’ =>’image’, ‘post_status’ => ‘inherit’, ‘order’ => ‘DESC’, ‘posts__in’ => $cposts ); // … Read more