0

I am trying to assign a variable either from my template file or otherwise which I can then access within the post editor.

Any ideas?

1
  • what do you mean specifically by "access within post editor"?
    – Milo
    Commented May 25, 2011 at 22:32

2 Answers 2

1

There is no built-in mechanism to access php in the post editor. The best solution would be to create a custom shortcode which you can use to access the variable. This is probably the safest and most secure method available.

0

You haven't been too descriptive but if you mean that you would be able to edit a variable in the Post > Edit screen then you should really be using Custom Fields. These variables would be stored / retrieved as post meta-data.

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.