I’m working with custom post type. I want to use custom menu image for the post type.
I know ‘menu_icon’ => ” should work but couldn’t recognize how image path should be specified. I appreciate your help.
Leave a Reply
You must be logged in to post a comment.
It is better to give the full path to the image. Something like this
Edit: If you want to include the image from the Plugin directory, then you can use the plugin_url() function. This will make it compatible with WPMU as well.
Other way to do it, if the image you want to add is located in your theme directory, would be: