Get all media categories
Found the answer: $categories = get_terms( ‘category’, array(‘hide_empty’ => false) );
Found the answer: $categories = get_terms( ‘category’, array(‘hide_empty’ => false) );
You can change the category metabox. You can create custom metabox as per your need which contains all categories in proper layout. Also you can search for plugins, say HTML5 category selector plugin http://wordpress.org/plugins/wp-html5-category-selector/
I figured out the problem. By adding /. at the end of the category base fixed the problem. So it is news/. instead of news.
How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
You have to use this function: get_post_custom_values The first parameter is the name of the key, arata_in_listare, and the second the post id, depending on where are you making the call you might not need to pass it. In this community we don’t give support for plugins, so I’m showing you the “wordpress” way of … Read more
If you store your last post ID in a variable from the first loop you can use post__not_in in the second loop to exclude the Id. Example adapted from Wordpres Class Reference/WP Query $query = new WP_Query( array( ‘post_type’ => ‘post’, ‘post__not_in’ => array( $excluded_post_id ) ) ); You can exclude any number of posts … Read more
Remove subcategory and category with some rules from permalink
<ul> <?php $categories = get_categories(); foreach($categories as $category) { ?> <li><a href=”https://wordpress.stackexchange.com/questions/165159/<?php echo get_category_link($category->cat_id);?>”>$category->name</a></li> <?php } ?> </ul> Just simply change the content inside the foreach loop to output how ever your desire. If you are doing this in a number of places drop it into a function and echo the function from your functions … Read more
Taxonomies, as previously described are a collective noun for the following category post_tag post_format link_category custom taxonomy The first four are built-in taxonomies, while custom taxonomies are taxonomies that are manually created by the user with register_taxonomy. Custom Taxonomies can be hierarchical (like the build-in taxonomy category) or not (like post tags) The categories and … Read more
Multiple Loops on category.php with pagination on last loop