svarcko
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] Term page pagination not working (404)@tw2113 thanks for all the info so far… i think i have some ideas that i can try thanks to your replies… i tried doing it the GET params way but failed, will try something different. i thought that CPT is somehow responsible for the urls of the custom taxonomies that are made using it thats why i wrote here first.
thanks again and best wishes.Forum: Plugins
In reply to: [Custom Post Type UI] Term page pagination not working (404)@tw2113 the theme is custom, made from scratch, the terms are associated to the products custom post using a custom field created by ACF… if i add the default “twentynineteen” theme then the page /product_size/small_product/ dosnt display any products…
Forum: Plugins
In reply to: [Custom Post Type UI] Term page pagination not working (404)@tw2113
i have 3 taxonomies product_size, product_use, product_type, and i need each term of those taxonomies to have its own archive page where all the products with that term will be shown. some terms have many products so i need those term archives to have pagination.
example:
/product_size/small_product/
/product_size/medium_product/
/product_size/large_product/
/product_use/distribution_product/
/product_use/display_product/
/product_use/automation_product/i wrote in the CPTUI support because i am using custom taxonomies made using CPTUI and the real problem seems to be the url hierarchy of those taxonomies.
i cant really understand why /product_size/large_product/page/1/ is working and is redirecting to /product_size/large_product/ and all other pages are not working.Forum: Plugins
In reply to: [Custom Post Type UI] Term page pagination not working (404)@tw2113
1) you are right, i forgot to remove it from the code when i copied from my other pages (the paging is not working even when i delete the numberposts from the query).
2) i am doing it before just in case, because there are some other queries that are executed before this one (i am doing it everywhere before and after the query).if i dont put the pagination part and the limits of how many posts to be shown i get 65 products (all of them) and i need to show only 12 per page using the pager…
Forum: Plugins
In reply to: [WooCommerce] Changing billing postcode label and prioritySolved. The code works, another plugin was overriding the code changes…
thanks @aimsinfosofts i sorted out the problem. the issue was that i had some broken php in the front-page.php template when the form was posted and thats why it was ignored by the system…
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] wp_query most popular products with wishlistthanks @yithemes for the answer.
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] wp_query most popular products with wishlistfor now temporally i am accomplishing that like this:
global $wpdb; $sql = 'SELECT prod_id, count(*) as NUM FROM wp_yith_wcwl GROUP BY prod_id ORDER BY NUM DESC LIMIT 10'; $rows = $wpdb->get_results($sql); if($rows): foreach ($rows as $key => $popular_product): $product_id = $popular_product->prod_id; $product = wc_get_product($product_id);is this good enough? is there any better solution?
Forum: Plugins
In reply to: [Custom Post Type UI] Taxonomy list instead autocomplete on adding new postThanks @tw2113 that was exactly what i was looking for. Thanks for the plugin suggestion too…