• Resolved WMEric

    (@wmeric)


    Hello,

    I am trying to get the icons to display on my custom loop for menu items and I can’t see the icon image inside the menu items array.

    I printed the array so I can see what all it has and this is all I can see. The only thing I really need is to output the icon that is selected.

    ["thumbnail_id"]=>
      int(0)
      ["thumbnail_hover_id"]=>
      string(0) ""
      ["image_size"]=>
      string(10) "menu-36x36"
      ["title_position"]=>
      string(5) "after"
      ["menu_image_icon_type"]=>
      string(4) "icon"

    I have verified the images are set, but yet it’s also not showing inside the menu items ie on the menu edit page Appearance > Menus

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @wmeric,

    The info is saved in the postmeta table associated with the menu item ID.

    Try to get the postmeta of a specific menu item ID. I suggest doing this first outside the loop to see what data it brings.

    It it’s an image and not an icon try to use get_post_thumbnail_id(Menu Item ID)

    Let me know the result.

    Plugin Author Rui Guerreiro

    (@takanakui)

    Will close the topic for now. Let me know if necessary.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add image/icon to custom loop’ is closed to new replies.