DX Template Manager
By Mario Peshev
Create page templates like the ones in your theme folder but through a “DX Templates” menu in your Admin dashboard. Paste HTML, JS and PHP code which you could assign to your posts, pages or custom post types via a meta box dropdown. Create page templates and apply them to be evaluated.
Note: eval() function is used. However, it is available only for admin users to submit code and normally admin users could do a lot harm or upload external harmful plugins as well.
A complete demo is available here:
This section describes how to install the plugin and get it working.
e.g.
- Upload
dx-template-manager
to the/wp-content/plugins/
directory or install via the Plugin installer in your admin dashboard - Activate the “DX Template Manager” plugin through the ‘Plugins’ menu in WordPress
- Navigate to “Settings” -> DX Template Options
- Read the note. If you do agree, check the checkbox and hit the “agree” button
- Create a page template within the DX Template Manager menu – add your full HTML and PHP code including the head section and meta tags
- Create a post/page and assign the page template from the DX Templates metabox on the right
- Save your post and view it
Check out this video for a complete install guide
Why do I need to ‘agree’?
The plugin uses the eval() PHP function that evaluates a PHP script on the fly. If a hacker reaches your admin, he would be able to write any form of PHP which could affect your site and database.
However, if the hacker has an access to the admin, he could 1) delete everything and takeover your site, or 2) upload a custom plugin of his that does the malware work.
What needs to be inserted in a DX Template?
Your full HTML as it would be in your page template file. HTML, head and body sections, meta tags, some content. It would replace the entire post/page resolved from the site.
1.2
- Small update and version bump
1.1
Adding a prepared statement call and improving i18n
1.0
A stable version
Screenshots



Alternative Plugins for DX Template Manager
This plugin adds portfolio, team/members, itrans slider, testimonials post type along with shortcodes for Portfolio, Testimonials, Image Sliders, Team …
Categories: General
Automatically keep the remote picture to the local, and automatically generate thumbnails.自动保持远程图片到本地,并且自动生成缩略图。
Categories: General
The pictures automatically add watermark. 图片自动添加水印.
Categories: General
Automatically deletes attached media from posts and custom post types added via the Media button.
Categories: General
This plugin will allow to create a custom template for any custom post type and posts same as page template. You can assign page template to any post …
Categories: General
Automatic batch timing post. 自动批量定时发布文章。
Categories: General
Template list metabox is to create Metabox for Dropdown List of all available Templates to attach with any Custom Post Types
Categories: General
Intended for Developers: This template debugger helps you identify what template files are being used on the page you're viewing.
Categories: General
A plugin that turns many of the WP template tags into shortcodes (40+ shortcodes).
Categories: General