Storing content into a custom taxonomy

Your question is confusing but assuming that you want your array to be an argument set for, say, wp_insert_post() then… I am wondering how I can include it into the array for posting with the content from the string provided in the example. … you need tax_input. I am pretty sure I’ve got this right: … Read more

I have custom post type with custom taxonomy. But not found the taxonomy page..

It’s not how taxonomy work. The apps_cat is just the taxonomy, not the term. Like category, you will receive not found with http://redesign.conei-sa.com/category. You must point to a specific term of apps_cat. apps_cat can’t have any post, only the term of it has. Anyway, if you got not found with term page, try update permalink … Read more

get_terms() parent, child and grandchild

Since this is for a taxonomy archive, you can just use get_queried_object() and the parent and depth argument in wp_list_categories(): $term = get_queried_object(); $list = wp_list_categories( array( ‘orderby’ => ‘name’, ‘taxonomy’ => $term->taxonomy, ‘parent’ => $term->term_id, ‘title_li’ => ”, ‘depth’ => 1, ‘echo’ => false, )); if ( $list ) { echo “<ul>$list</ul>”; } else … Read more

How do I hide certain taxonomy boxes from users in admin add post page?

The following worked for me in functions.php /** * [remove_meta_boxes remove the resource type standard meta box from the side sortables in the resource post edit screen * @return [type] How do I hide certain taxonomy boxes from users in admin add post page? */ function remove_meta_boxes(){ remove_meta_box( ‘resourcetypesdiv’, ‘resource’,’side’ ); } add_action( ‘admin_menu’, __NAMESPACE__ … Read more

query_posts by category_name and custom taxonomy

$args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘channel’, ‘field’ => ‘slug’, ‘terms’ => array( ‘news’, ‘comedy’ ), //this is by slug ), array( ‘taxonomy’ => ‘category’, ‘field’ => ‘term_id’, ‘terms’ => array( 103, 115, 206 ), //this is by id ) ) ); $query = new WP_Query( … Read more