wordpress - menu_icon not displaying -


i have custom post_type created in wordpress admin control panel. working fine except menu_icon

'menu_icon' => get_stylesheet_directory_uri() . '/images/my_menu_icon.png', 

it's not loading @ all... image file located in my_theme/images

is there code instead use template directory menu_icon? or need save image file somewhere else?

i have no clue..

thanks!

try this:

'menu_icon' => get_bloginfo('template_directory'). '/images/my_menu_icon.png', 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -