Looper Provider: Menu - Featured Image

I’m really enjoying the Menu Looper Provider! I’ve used it so many different ways so far and I’m sure I’ll find many more ways to use it.

2 questions:

  1. is there any way to reference a featured image attached to the page/post that the menu item refers to? I’m trying to build out a dynamically generated Mega Menu, but can’t figure out how to reference an image.

  2. How can I reference a location rather than a menu name in the Provider? This exists when selecting the menu from a menu element, but isn’t available in the Menu Provider area. (I need a solution, but also possible to add as a Feature Request?)
    image

I was able to work out my First/Featured Image question using this:

{{ post.featured_image({"post": looper.field({"key":"object_id"})}) }}

also, I’m not sure if this is user error or a glitch, but:

{{ looper.field({“key”:“post_title”}) }} - only pulls titles for CPTs and and Custom Links

{{ looper.field({“key”:“title”}) }} - pulls everything

Hello @splaquet,

The post_title pertains to the title of the page, post, or custom post type. I would recommend running the debug first {{dc:looper:debug_consumer}}. This should return the data that you can use to display a title or specific field for that particular consumer.

We would be happy to double check your site if we can log in. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.