Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 136 Vote(s) - 3.64 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add extra fields for each menu item

#1
I am making a theme. There I want to add extra fields for each menu items ( *Appearance > Menus* and i.e). In the picture below I want to add some extra form fields ( like radio button, textarea and etc. ) under the field "Description":

![menu item wordpress][1]

Is there any way or tutorial about how can I do this?


[1]:
Reply

#2
I was looking for the same thing.
I found these, all of which work differently.

**https://gist.github.com/kucrut/3804376**
simple to use and straightforward if you plan to build an elaborate class
(note: with mods this could be used for checkboxes, radio, color pickers, ect)

**https://wordpress.org/plugins/sweet-custom-menu/**
This worked well, very simple, adds a txt field.
(note: it overrides the whole wordpress_walker class)

**http://www.johnmorrisonline.com/how-to-add-a-fully-functional-custom-meta-box-to-wordpress-navigation-menus/**
This is very different, it adds an entire mettabox type to the admin menu panel on the LEFT. I elected to use this as I was building my own version of a "mega menu" and wanted to add widgets. With enough work on this item and the one above anything is possible.


Good luck!
Reply

#3
It all depends on what you want an extra field for, but sometimes this kind of problem can be resolved by looking at an alternative approach: Add in a [shortcode in your menu][1], giving you the programmatic flexibility to customise your menu item output beyond what is offered by WP.


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through