Shortcode documentation
-
Hi,
This can be feel as a curious or stupid question.
I tried to find shortcodes documentation and could not find anything else that the list of ultimate, but nothing about parameters nothing in codex else than creation rules for development.
I have written several shortcodes and added parameters into plugins in developments, so everything seams clear till today.
I have to use the shortcode “menu” which appear as “su_menu” with ultimate.It doesn’t function as I would. I wish to display some submenu of current menu into a page.
When I give the title of the menu (name of menu doesn’t exist in french version it is title) and I hope to get the display of the options of the corresponding menu.
I get always the full menu (with the name given displayed).Then I search for a definition of the shortcode use rules and parameters (else than “title” or “name”), after half an hour I could not find anything else that the way to create shortcodes defined in Codex (which I know quite well).
Must we (as user) seek the code to rebuild documentation ?
I could not find a recent plugin which displays shortcodes data (registered data about into db).Please do somebody can help me ?
Best regards
Trebly
-
Hi,
Two days mean nobody interested in answering to this stupid question.
I found a part of the problem :
- There is no documentation
- There is ‘in French à “pense-bête” ‘, à “memo” of a non existing documentation
- In this memo we can find that nu_menu has only two parameters the name od menu and the class
- So there nothing else than seeking the code to get information : I could extract this original documentation :
The shortcode [nu_menu …] displays a whole menu defined into the theme.
By default if the name is not valid the behavior is those of nav_menu because parameters are sent to wp_nav_menu without any test.
Particularly if the menu name is those of a submenu you will get the whole menu.
There is no parameter to display a submenu.
Without CSS it is not usable.
As I am searching for the display of various submenu so :
– I am testing a new shortcode that I have developed and that I try to integrate into ultimate for editor integration (I am for now seeking where the form is generated from the atts (parameters requested for the shortcode).
– If I cannot integrate I will have to develop a new shortcode plugin.Others plugin seems no more clear about submenu selection.
Best regards
Trebly
-
This reply was modified 9 years, 1 month ago by
Trebly.
The topic ‘Shortcode documentation’ is closed to new replies.