Plugin Directory

Changeset 2720066


Ignore:
Timestamp:
05/08/2022 06:13:00 AM (4 years ago)
Author:
EnigmaWeb
Message:

Added shortcode

Location:
inner-page-menu/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inner-page-menu/trunk/Readme.txt

    r1653232 r2720066  
    44Tags: menu, add menu, inner page menu
    55Requires at least: 3.1
    6 Tested up to: 4.7.4
     6Tested up to: 6.0
    77Stable tag: trunk
    88License: GPLv2 or later
     
    1515This plugin adds a clean, simple meta box to Page allowing you to select a menu to display. Perfect for inner page sidebars.
    1616
    17 Simply activate the plugin, then add `<?php inner_page_menu(); ?>` in your theme page or sidebar template where you want the inner menus to appear.
     17Simply activate the plugin, then add `<?php inner_page_menu(); ?>` in your theme page or sidebar template, or use shortcode `[inner-page-menu]` (eg in a sidebar widget), where you want the inner menus to appear.
    1818
    1919== Installation ==
     
    21211. Upload the `inner-page-menu` folder to the `/wp-content/plugins/` directory
    22221. Activate the Inner Page Menu plugin through the 'Plugins' menu in WordPress
    23 1. Add `<?php inner_page_menu(); ?>` in your theme page or sidebar template where you want the inner menus to appear.
     231. Add `<?php inner_page_menu(); ?>` in your theme page or sidebar template or use shortcode `[inner-page-menu]` (eg in a sidebar widget) where you want the inner menus to appear.
    2424 
    2525== Frequently Asked Questions ==
    2626
    27 = WordPress has a built in custom menu widget which you can use in a sidebar - why not use that? =
    28 The built in widget is perfect if you want the SAME menu to appear in the sidebar across a lot of pages.
    29 But this plugin allows you to control the sidebar menu for each page individually. In other words, you can set a DIFFERENT menu for each page.
    30 
    31 = What's this plugin used for? =
    32 Perfect for displaying child pages in the sidebar, instead of using a drop-down menu.
     27None yet.
    3328
    3429== Screenshots ==
     
    3934== Changelog ==
    4035
     36= 1.1 =
     37* Added shortcode
     38* Tested with newer WordPress versions
     39
    4140= 1.0 =
    4241* Initial release
     
    4443== Upgrade Notice ==
    4544
     45= 1.1 =
     46* Added shortcode
     47* Tested with newer WordPress versions
     48
    4649= 1.0 =
    4750* Initial release
  • inner-page-menu/trunk/index.php

    r1653232 r2720066  
    44  Plugin URI: https://wordpress.org/plugins/inner-page-menu
    55  Description: Add dynamic menus to your inner pages
    6   Author: EnigmaWeb
    7   Version: 1.0
    8   Author URI: https://profiles.wordpress.org/enigmaweb/
     6  Author: Maeve Lander
     7  Version: 1.1
     8  Author URI: https://maevelander.net
    99*/
    1010 
     
    8787    }
    8888}
     89
     90//=========> Create shortcode [inner-page-menu]
     91add_shortcode('inner-page-menu', 'inner_page_menu');
     92
    8993?>
Note: See TracChangeset for help on using the changeset viewer.