WordPress.org

Support

Support » How-To and Troubleshooting » Adding a PHP content variable from the WYSIWYG editor?

Adding a PHP content variable from the WYSIWYG editor?

  • Hi everyone,

    I was wondering if it was possible for a WordPress back end user to input some sort of basic content within a WYSIWYG editor when editing pages that could be used within the page template in a predefined section that is separate from the main page content (almost like a sub-page, but not quite what I need).

    For example, say I have a page with some content, and the user puts in a smart code (eg. [miscinfo]test[/miscinfo]). In the PHP files, whatever HTML is inserted between those tags is saved in a PHP variable that can be used in a separate DIV that is completely removed from the main page content.

    Is this possible? Any help would be appreciated, thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding a PHP content variable from the WYSIWYG editor?’ is closed to new replies.