Returning menu ID on one page template?
-
I’m totally puzzled by this – I’m using this code on a few of my page templates and it works fine on all of them, but for some reason, on this one page template the custom field is returning the menu ID. It’s definitely set to Nav Menu HTML, and displays correctly on every other page template I’ve made using this code. But not here. I’ve tried debugging and displaying the string, but nothing. Really stumped – if anyone has any ideas I’d appreciate it.
<button onclick="myFunction()" class="dropbtn" style="width:300px;">Take me to...</button><span class="downarrow dropbtn"><i onclick="myFunction()" class="material-icons dropbtn" style="font-size: 34px;">keyboard_arrow_down</i></span> <div id="myDropdown" class="dropdown-content"> <?php the_field('quick_menu'); ?> </div>
- This topic was modified 6 years, 8 months ago by .
- This topic was modified 6 years, 8 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Returning menu ID on one page template?’ is closed to new replies.