Children categories not shown in dashboard
I solved by force refreshing the cache (by @passatgt). i.e., place this line after the insertion: delete_option(“{$taxonomy}_children”); Thanks!
I solved by force refreshing the cache (by @passatgt). i.e., place this line after the insertion: delete_option(“{$taxonomy}_children”); Thanks!
DESC order not working when showing only child categories
Well, I think you could use the CSS begins with selector to select all div’s that begin with category- div[class*=’category-‘] #main { width: 300px!important; } so as you add them, it will still affect any class that begins with them. Then, assuming you have 1 or 2 categories you don’t want to have the property, … Read more
Taxonomy for custom post type not found
WordPress uses the following hierarchy to determine which file should be used to display the category page: category-slug.php category-ID.php category.php archive.php index.php Removing all of the “category-slug.php” and “category-ID.php” files whilst leaving just one file called “category.php” should do the trick. http://codex.wordpress.org/Category_Templates
You can do it by sending the 5th parameter to wp.newPost, like this: $request = xmlrpc_encode_request( “wp.newPost”, array( 1, $xmlrpc_username, $xmlrpc_password, $content, $terms) ); Please note the $terms should be in this format: ‘Taxonomy names as keys, array of term IDs as values’, according to the Codex. FYI, here is another thread related to your … Read more
is rare, but it would have to default as you run you want. This forces the operation that you need function my_category_link( $termlink, $term_id ) { $term = get_term( $term_id, ‘category’ ); $ancestors = get_ancestors($term_id, ‘category’); if( !count($ancestors) ) return $termlink; $hierarchical_slugs = array(); foreach ( (array)$ancestors as $ancestor ) { $ancestor_term = get_term($ancestor, ‘category’); … Read more
WooCommerce shows a listing of product categories at /products, which can be added to a menu as a simple link to that url. It took me a while to find that url. To override the categories page template, grab a copy of templates/content-product_cat.php from the WooCommerce repo and place it at woocommerce/content-product_cat.php in the child … Read more
It looks like the paged variable isn’t being added to the query arguments. This should work: $paged = ( get_query_var(‘paged’) ) ? get_query_var( ‘paged’ ) : 1; $args = array( ‘post_type’ => ‘animals’, ‘posts_per_page’ => 4, ‘category’ => $queryString, ‘paged’ => $paged ); $wp_query = new WP_Query( $args ); Also, as a note, $wp_query is … Read more
The following plugin or his modification might be the solution for you. Automatically adds menu items by category. However, the first item must be added manually, and then you must click to automatically add subcategories in the menu item. If I know correctly, it only adds categories. No blog posts or pages. Plugin: Add Descendants … Read more