In the wordpress, there is a special category selector from which you can select the categories by name. But in the Visual Composer, or for custom post types, you might need to manually input the categories id. This is how to scrape the category id.
Go to the post categories. Click the EDIT button

Find the ID in the url

Leave A Comment?