WooCommerce – how to display product category title above product category images?

1). Copy the Template File Navigate to wp-content/plugins/woocommerce/templates/loop/ Find category.php Copy it to your theme at wp-content/themes/your-theme/woocommerce/loop/category.php 2).Modify the category.php File Open category.php in a code editor and update it to separate the title from the image: <?php /** * The template for displaying product category thumbnails within loops. */ if (!defined(‘ABSPATH’)) { exit; } … Read more

Category page 2 url doesn’t exist

The answer is to use pre_get_posts. See WordPress Pagination not displaying posts after certain page As Milo says “WordPress determines if a paginated page exists based on the results of the main query”. I was using a custom query that was setting posts_per_page to 5 but in Settings this value was set to 10. Using … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)