0

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
[paymentform]

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.

1 Answer 1

1

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

1
  • Agreed, shortcodes are the best fit for this.
    – supajb
    Commented May 16, 2011 at 0:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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