WordPress.org

Ready to get started?Download WordPress

Forums

Admin Menu Editor
Create Dynamic Menus (6 posts)

  1. andrezasv
    Member
    Posted 4 months ago #

    Hi,

    I read in the pro version that we can use these shortcodes:
    [wp-wpurl] – WordPress address (e.g. “http://example.com/”).
    [wp-siteurl] – Blog address (e.g. “http://example.com/blog”).
    [wp-admin] – Admin area URL (e.g. “http://example.com/wp-admin/”).
    [wp-name] – Blog title.
    [wp-version] – Current WordPress version.

    But I dont undestand how to use shortcodes to create admin bar menus. For instance, how to create a menu to the Pages? Considering that I have a multisite and each site has a diffente set of pages, consequently each site has different links to Pages. For this reason I named it dynamic menus.

    I want to do this: create a admin bar with the menus Visit Site, Visit Backend and Logout. Which the shortcodes I have to use for this?

    For instance, if I want create a menu to link to Profile, can I use this for the URL: [wp-wpurl]/profile.php ?

    Other question: How to add icons to each new menu located in the left (not the bar admin menu)?

    https://wordpress.org/plugins/admin-menu-editor/

  2. Janis Elsts
    Member
    Plugin Author

    Posted 4 months ago #

    But I dont undestand how to use shortcodes to create admin bar menus.

    Unfortunately, the current version of the Toolbar Editor add-on does not support shortcodes. They only work in the main plugin, Admin Menu Editor Pro.

    Other question: How to add icons to each new menu located in the left (not the bar admin menu)?

    To change admin menu icons, click the "Show advanced options" link under menu settings, then use the "Icon URL" field to set the icon.

  3. andrezasv
    Member
    Posted 4 months ago #

    1) What should I type in the URL field to create an admim bar menu that links to "visit the site" (e.g. http://www.mysite.com.br)? As do the shortcode [wp-wpurl]. Or for instance to link to the subsites of the network: http://www.mysite.com.br/site01

    2) What should I type in the URL field to create an admim bar menu that links to "Logout"?

    3) I noted that I have to type the end of the URL, and the whole URL is generated (with the domain + /wp-admin), such as I type "edit.php" and it generates the link "http://amedemo.com/wp-admin/edit.php". If I'm in a subsite of the network, the link will be generated according to the subsite? For instance, in a subsite will be genrated a link like http://mysite.com.br/subsite01/wp-admin/edit.php ? or http://mysite.com.br/subsite02/wp-admin/edit.php or http://mysite.com.br/subsite03/wp-admin/edit.php and so on...

    Thank you very much.

  4. Janis Elsts
    Member
    Plugin Author

    Posted 4 months ago #

    Could you please clarify which of these two you are talking about:

    1. The WordPress Toolbar - a horizontal menu at the top of the page. Was known as "admin bar" in older WP versions.
    2. The actual admin menu - vertical menu at the left side of the page. Unlike the Toolbar, the admin menu is only visible in the admin backend/Dashboard.

    1) What should I type in the URL field to create an admim bar menu that links to "visit the site" (e.g. http://www.mysite.com.br)? As do the shortcode [wp-wpurl]. Or for instance to link to the subsites of the network: http://www.mysite.com.br/site01

    As I said, it's not possible to use shortcodes in the toolbar/admin bar. However, if you were actually referring to the admin menu, [wp-siteurl] would be a good choice. In a network, it would link to the current subsite.

    2) What should I type in the URL field to create an admim bar menu that links to "Logout"?

    That's not possible with this plugin. Also, the toolbar (admin bar) already includes a logout link by default. Why not just use that? You could move it to a different location if necessary.

    3) I noted that I have to type the end of the URL, and the whole URL is generated (with the domain + /wp-admin), such as I type "edit.php" and it generates the link "http://amedemo.com/wp-admin/edit.php". If I'm in a subsite of the network, the link will be generated according to the subsite?

    It would be generated according to the subsite.

  5. andrezasv
    Member
    Posted 4 months ago #

    Thanks for the answer.

    I'm referring to: The WordPress Toolbar - a horizontal menu at the top of the page. Was known as "admin bar" in older WP versions. So I think your answers were related to the vertical menu.

    1) What should I type in the URL field to create an admim bar menu that links to "visit the site" (e.g. http://www.mysite.com.br)? As do the shortcode [wp-wpurl]. Or for instance to link to the subsites of the network: http://www.mysite.com.br/site01

    2) What should I type in the URL field to create an admim bar menu that links to "Logout"?

    How to include a logout link by default? I could not find this option.

  6. Janis Elsts
    Member
    Plugin Author

    Posted 4 months ago #

    1) What should I type in the URL field to create an admim bar menu that links to "visit the site" (e.g. http://www.mysite.com.br)? As do the shortcode [wp-wpurl]. Or for instance to link to the subsites of the network: http://www.mysite.com.br/site01

    To put it simply: You can't do that. As I mentioned in my two previous posts, Toolbar Editor does not support shortcodes. There is no other way to link to the current site (as far as I'm aware of).

    2) What should I type in the URL field to create an admim bar menu that links to "Logout"?

    How to include a logout link by default? I could not find this option.

    In the toolbar editor, you can find the logout menu under "top-secondary" -> "Howdy, Demo User" -> "user-actions" -> "Log out".

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.