Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I would like to try little web apps with WordPress.

Just to accept some values for few fields and present the output using AJAX.

What are all the necessary modifications on WordPress?

So, far I've tried some plugins like exec-php. But, I am in need of a better advice/suggestion.

share|improve this question
2  
Can you give more details please? What do you mean by "little web apps?" What do you mean "Just to accept some values for few fields and present the output using AJAX?" What is your use-case; IOW, what are you trying to build/accomplish? –  MikeSchinkel Jan 29 '11 at 7:06

1 Answer 1

up vote 2 down vote accepted

Natively WordPress posts are subset of HTML (even more like semi-HTML - paragraph tags can be implied and added on output, but not stored). As result it really really doesn't like to store or process active code in post's content. This applies both to internal logic in PHP and front-end logic of post editor (it actively tries to strip some things like iframes, when switching to visual editor, etc).

Basically you have two options:

  1. Loosen restrictions on what can be input and sotred in post content - like Exec-PHP you mention in question.
  2. Store active code elsewhere (in custom fields for example) and use shortcode in post content to call it.
share|improve this answer

Your Answer

 
discard

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.