Assign a Custom Role to a Custom Post?

I been looking around for this, but couldn’t find a way.
The scenario is:
I have a custom post type ‘Company’, and I’m creating Company type posts through my plugin’s code. When I create a new Company post, I set the author as Admin. Now further down the code, I’m creating a custom role ‘Representative’ and assigning users to this role through my code again. What I want to do is, assign a Representative to a Company Post as an author. But I can’t even see this user(Rep.) in the dropdown for switching authors. Is there any argument that I need to pass to wp_insert_user or register_post_type or add_role/add_cap for achieving this?

( Woocommerce) How to get the user belonging to an order?

I am making a function which needs to be called after an order is completed within WooCommerce. For this I’m using the *’woocommerce_order_status_completed’* hook. I want to check if the order has a product belonging to a specific product category. If this is the case, the user will be added to a group within WordPress. … Read more

WordPress Multisite Multiple child theme

I have a mulisite setup and I am using one theme for multiple sites in it and each site have a custom layout and design. So for that I need to create a child-theme. But I don’t know how to create multiple child theme for each site so I can add customization in each child theme style.css, footer.php, function.php, header.php