I think you’ll need one of the Plugins (runphp, can’t recall the name of the others) which accomplishes that, and you’ll need to make sure the call to the file is inside The_Loop.
vkaryl:
Forgive me for being unclear: I only want to edit the “hard code” (wp-admin/post.php ?) so that something happens every time a post is saved or published, which occurs every timesomebody pushes the correct button in the editor. What I want to know is how those lines look like and where I can find them.
Since I want to modify the php-files directly there’s no real need for the plugin you mentioned (you’re right however – if I’d want to include files from within a post I’d have to do what you recomended).
Yup, sorry, misunderstood you. I’ve never myself taken that route, so don’t have a definitive answer for what you’re really looking to do.
I have tweaked core code on occasion, just not to do that particular thing; once someone brighter than I gives you the appropriate file and lines to edit, just be sure you comment everything thoroughly and keep backups. Sounds like you probably know that already though!
Sorry not to be of more help….
Looks like it could be wp-admin/edit-form-advanced.php
I’ll manage without this so I won’t do the trial and error since it’s time consuming and I don’t understand all of the code and it’s relation to one and another.
If somebody knows the answer I’d still appreciate it though.
I have saved my draft….but there is no “publish” button.
how do I publish