Can I create custom taxonomy what dont creates slug pages?

It depends on what exactly you want, but you can play with public, publicly_queryable and other arguments when registering the taxonomy. For example, with the following code, the taxonomy will have the user interface in the backend, but won’t be public and WordPress won’t generate a URL for each term: add_action( ‘init’, ‘register_custom_tax’ ); function … Read more

Remove pagination from WooCommerce product categories on admin edit navigation menus

Based on “Remove Pagination in Appearance -> Menus -> Categories“ answer thread for WordPress categories, you will adapt the answer code to WooCommerce Product Categories. The taxonomy of WooCommerce Product category is product_cat. Is also better to target admin nav menus only. Try the following (untested): add_filter( ‘get_terms_args’, ‘admin_nav_menu_show_all_product_categories’, 10, 2); function admin_nav_menu_show_all_product_categories( $args, $taxonomies … Read more

Change URL structure of subcategory archive pages

You answered your own question yourself. You want links to custom categories to look like this {taxonomy_slug}/{parent_term}/{child_term}/{grandchild_term}/ so you should pay attention to two parameters in the register_taxonomy() arguments: hierarchical and rewrite. $args = [ ‘hierarchical’ => true, // <– term may have a parent ‘labels’ => $labels, ‘rewrite’ => [ // hierarchical urls, defaults … Read more

Set download limit and expiry for WooCommerce downloadable products in specific categories

You can use WordPress conditional function has_term() to target specific product categories this way: // Set a different Download limit for specific downloadable products add_filter(‘woocommerce_product_get_download_limit’, ‘product_get_download_limit_filter_callback’, 30, 2 ); // Simple add_filter(‘woocommerce_product_variation_get_download_limit’, ‘product_get_download_limit_filter_callback’, 30, 2 ); // Variation function product_get_download_limit_filter_callback( $value, $product ) { $categories = array( ‘action’, ‘adventure’ ); // <== HERE define your … Read more

Is It Possible To Have Shared WordPress Custom Post Types?

I have partly solved my own question so-to-speak. I’ve been trying to get post type relationships working for ages and the plugin relation post types as mentioned in my comment to Christopher’s answer. It is far from perfect, but I worked out how to get this plugin: http://wordpress.org/extend/plugins/relation-post-types/ – working (albeit not that pretty). The … Read more

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