get list of category from a specific post with get_term()
get list of category from a specific post with get_term()
get list of category from a specific post with get_term()
Include last post date in get_categories loop
Woocommerce only display child category when parent is checked (on add new product page)
Migrate the posts of a category to another blog as a custom taxonomy
How do you get sticky posts to work with categories?
Excluding current category from sidebar’s post widget, elementor, query-id
Do I need to run new WP_Query() and rebuild the HTML table? No, you absolutely do not need to! And actually, you don’t even need to hook on parse_query (which BTW, is an action and not a filter). All you need to do is set your categories dropdown’s name to the taxonomy name/slug, which you’ve … Read more
display specific category when website loads
I think I figured it out. I had multiple things wrong with the code: function category_to_all( $term_id ){ remove_action( ‘create_category’, __FUNCTION__ ); $currentcatdata = get_term_by(‘id’, $term_id, ‘category’); $allsiteids = get_sites(array(‘fields’ => ‘ids’)); $currentsiteid = get_current_blog_id(); if (($key = array_search($currentsiteid, $allsiteids)) !== false) { unset($allsiteids[$key]); } $blog_ids = array_values($allsiteids); foreach( $blog_ids as $blog_id ) { switch_to_blog( … Read more
Intermittent Gutenberg 504 Gateway Timeout when calling REST route to retrieve categories