Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Volker,

    This is tricky. The Menu Sections use WordPress’s taxonomies, which doesn’t really provide an out-of-the-box solution for attaching meta data (like featured images).

    The easiest approach would probably be use something like Advanced Custom Fields to set up the image field. You’ll still probably need to modify the menu templates to get the image showing.

    Thread Starter volker666

    (@volker666)

    Hi NateWr,

    thanks for the quick response! I already thought that it would be difficult, so i think i will drop the idea.
    But, just out of curiosity: if i decided to try with ACF, how would i link the custom field to the wp_term_taxonomy – table where the menu section data is stored? can ACF do that and if so, how? wouldn’t that require to alter the wp_term_taxonomy – table?

    Volker

    Hi Volker,

    I haven’t used ACF in this capacity, but if I understand what it’s offering, it should handle the UI (selecting an image) and the data storage (linking the image to the taxonomy term).

    What you would need to do would be to modify the menu template files, use whatever method ACF recommends for loading the image, and chuck it into the menu section template file.

    Thread Starter volker666

    (@volker666)

    Hi NateWr,

    thanks again for your response, that sounds feasible. I will add this to my ‘things to try out when i find the time’ – list.

    Volker

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘featured image for menu-section’ is closed to new replies.