WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok, bit of a weird one... I want to include php code on one of my pages within the content by adding something like:

Welcome to the payment page

Blash blah vlha...

And then [paymentform] resolves to a bit of code either somewhere on the filesystem or within the database and handled by a settings page in the backend.

I didn't want to use the exec-php plugin for several reasons - mainly I don't want our client messing with the php code, secondly there are limitations using that with the visual editor etc..etc..

Cheers, John.

share|improve this question
up vote 1 down vote accepted

Have a look at the Shortcodes API http://codex.wordpress.org/Shortcode_API

share|improve this answer
Agreed, shortcodes are the best fit for this. – supajb May 16 '11 at 0:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.