Linux 软件免费装
Banner图

Shortcodely

开发者 patilswapnilv
更新时间 2021年7月14日 15:38
PHP版本: 4.0 及以上
WordPress版本: 4.7
版权网址: 版权信息

标签

widget sidebar page shortcode templates page template widget_area

下载

1.0.0

详情介绍:

Insert separate widgets or a entire widget area (sidebar) into a page using a shortcode. Customize the widget setting in "widgets for shortcodely" widget area.No extra efforts. Exactly as you would do it for any other widget. do_widget shortcode,will do its magic and display the widget or the even a chosen sidebar from the do_widget_area shortcode. The plugins default action is that it will magically find the settings for your themes first sidebar and use them to control the widget's output. In most cases this would mean that the widget will be styled as per the rest of your theme. In case, yout need to change the styling, there are parameters to override it. Whenever you need to change your theme, the plugin automagically saves and restores the widgets and its settings. It will then select the sidebar setting from the currect theme you are using. Instructions:
  1. Make sure you test the widget in the regualr widget area, or any exisitng sidebar.
  2. Then Activate shortcodely. (Ignore id already done.)
  3. Go to Appearance > Widgets and find the " widgets for shortcodely" sidebar or widget area
  4. Add your desired widgets to the Shortcodely side bar. Save.
  5. Go the Shortcodely settings. Click on one of the create page links to help you setup the shortcode.
  6. OR go to an existing page and enter a shortcode:
[do_widget widgetname] eg: [do_widget calendar] [do_widget "widget name"]. eg: [do_widget "tag cloud"] [do_widget id=widgetid] [do_widget_area] (will use the "widgets in shortcodes" widget area / sidebar [do_widget_area sidebarname] for another sidebar or widget area - eg: to maximise likelihood of getting your theme's widget css to apply.
  1. If the plugin cannot work out what you want and you are logged in as an administrator, it will show a debug prompt to you, the logged in admin only. Click on the link 'Try debug'. It will produce a bunch of info. Look for the id of your widget in the shortcodes sidebar (you may have to scroll through a lot of debug info). Try using the widget id. Sometimes the widget name that wordpress calls it internally is not the same as what you see on the screen and you will need the 'debug' to find the id.
[do_widget ...] Parameters: [do_widget_area ...] Parameters: See the settings page for links to help your create the shortcodes in a page. To 'remove debug mode' remove ?do_widget_debug=1 from the url you are looking at (NOTE it only debugs if you are logged in and an administrator, so this is really NOT a problem.) The plugin has been tested with most standard widgets (rss feeds, tag cloud, pages, meta, search, and of course my own plugins widgets - upcoming events list, calendar and user lists. If you use a widget more than once for different reasons, you may need to use the widget id to isolate which widget instance and it's settings to use. ie: [do_widget id=categories-6] . If you just use the name, it will display all widgets in the shortcode sidebar with that name (all instances). If you liked this plugin, you might also like my other plugins: Login and Logout redirect - Redirects users to specified url on logging in, logging out OR both. Gravity Pre-submission Confirmation - adds a pre-submission confirmation page to your Graviy forms where users can preview their entered data before they submit it.

安装:

  1. Activate plugin
  2. Goto Appearance > Widgets and find "shortcode" sidebar
  3. Drag chosen widgets to shortcodes sidebar. Save. (note the names)
  4. Add [do_widget widgetname] in a page or post or [do_widget_area]
  5. If it fails, click on the debug prompt and look for the id of your widget, use that.
Or can use [do_widget widgetname] within the text in the page and save. If the widget name has a space in it, use [do_widget "widget name"]. If you use a widget more than once for different shortcodes, you can use the widget id to isolate which widget instance (and of course associated settings to use). ie: [do_widget id=categories-6] do_widget parameters: do_widget_area parameters: Styling Check your styling. The effects are very dependent on how your theme has specified the css that may apply to widgets and sidebars/widget areas. It may work beautifully and have the content looking like it belongs with your theme. You may have undesired effects applying that do not work in the main content area. You may have desired effects not applying because the css is specific to a themes sidebar. Via the plugin you can do the following to affect styling:

更新日志:

Version 1.0.0