描述
Reve Dynamic Widget is a extended WordPress text widget that evaluates any content type (text, HTML, Javascript, PHP or shortcodes) and shows it in the posts and pages you want.
It is totally free, very light-weight, fast, easy to use and versatile.
This plugin is translation ready (pot file included) and translated to spanish. Translations to other languages are welcome.
Editor features
- The “Show title” option allows you to show or hide the widget title in the frontend.
- As the core text widget, you can format the content with the “Add paragraphs automatically” option.
- You can enter only text as content, or any HTML, CSS, Javascript and/or PHP code.
- Also you can enter any shortcode that you normally use in your posts or pages.
- Activate the “Evaluate content with PHP” option to enable the PHP interpreter.
Filter options
- Show or hide the widget by template options: show in front page, blog page, posts, pages, archive, search and error pages.
- Use the “Exclude posts or pages” option to hide the widget in certain posts or pages, when show in post and/or in pages are activated.
To insert PHP code
-
PHP code must be correct and used within the open and close PHP tags:
<?php
and?>
. -
Note that any PHP code is executed in the scope of a PHP function, but you can do almost everything that you can do with PHP. So only administrators with PHP knowledges must use this feature.
-
This plugin uses the native PHP
eval()
function with the error control operator@
, to prevent error messages and broken pages. So if you don’t see your PHP output it is probably because your code have mistakes. -
And don’t forget to activate the “Evaluate with PHP” option, that is disabled by default.
Need help?
- For help use the WordPress Support.
- Also you can write a review.
Contribute development
螢幕截圖
安裝
- Download “reve-dynamic-widget” to the “/wp-content/plugins/” directory of your site.
- Activate the plugin through the “Plugins” menu in WordPress.
- Go to Appearance > Widgets and insert it in any sidebar of your theme.
評價
貢獻者及開發者
修改日誌
1.7.0
- Added the Show in front page filter.
- Added version control.
- Tested with WordPress 5.6.
1.6.0
- Fixed a bug when used with Elementor Page Builder.
- Improved options validation.
1.0.0
- 2017-04-26: Initial release.