Wordpress users, display PHP in posts?

Soldato
Joined
24 May 2006
Posts
3,824
Location
Surrey - UK
Hi guys,

I'm aware we have some Wordpress users here, not sure how many, but hoping one of you can answer this question, save me having to register on the Wordpress site for what may be a simple question (i've googled and searched).

I'm trying to post some PHP into a Post in WP, however WP is parsing the code, whether it's inside <code>, <pre> or <post> tags....

I think the reason being is, i want to actually display some WP code, but it's always being parsed..... aswell as PHP code in any form....

Surely there must be a way though?

Failing a solution the only way i can see to do it is create a stand-alone page and call that into an iframe, but i'd really prefer not to...

Appreciate any suggestions/help.

Tia...
 
Nvm, no need guys, found a plugin for it that does the job, and does syntax highlighting to...
 
Ironic, that's the one i ended up using...

It's a great Plugin, lots of options for displaying code on the page...

Can see it at work on this page...
http://www.t31os.co.uk/?p=152

Tried a few others, but they were limited or not fully working, this one actually does what it says without error...
 
Back
Top Bottom