New answers tagged

1 vote
Accepted

Wordpress bulk category select when publishing post

The default function that renders the categories meta box is post_categories_meta_box - it doesn't have any internal hooks we can use to inject our own HTML, so let's create our own meta box handler ...
user avatar
  • 35.5k
1 vote
Accepted

How to set category correctly for a custom post created by a remote API call?

Functions like get_cat_ID and get_category_by_slug only work for core post categories (taxonomy category) - you are dealing with a custom taxonomy todocategories. I see you have $a2zq3_cat_name = '...
user avatar
  • 35.5k
0 votes
Accepted

Visual composer custom element error

I had to add the element by extending WPBakeryShortCode class.
user avatar

Top 50 recent answers are included