Over a million developers have joined DZone.

Use PHP Inside EE Entries

DZone's Guide to

Use PHP Inside EE Entries

· ·
Free Resource
You'll need the following plugins:
Allow EE Code: http://www.pmachine.com/plugins/allow-eecode/
Allow PHP: http://loweblog.com/archive/2005/06/03/ee-allow-php-plugin/

Set text formatting for the field you want to use this on to "None" (Admin > Weblog Administration > Custom Weblog Fields).

Change your template by adding the Allow EE tags around the field:


Now you can use PHP inside your entries like this:

Bla bla regular entry text

{exp:allowphp} echo "This will be processed as PHP."; {/exp:allowphp}

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}