am writing a plugin and have most of it done, dont wether i am tired but i just cant see the bit i need.

to display title and link in a code box i am using

Code: 

$lr_permalink = get_permalink($post->ID);

$lr_title = get_the_title($post->ID);
if i also want to display the content as formatted code in the box would i use

Code: 

$lr_content = get_the_content($post->the_post())

or

$lr_content = get_the_content($post->the_content)
what i want to do is display the content of the post in a code box so people can copy paste it

thanks
CrapH Reviewed by CrapH on . wordpress help needed am writing a plugin and have most of it done, dont wether i am tired but i just cant see the bit i need. to display title and link in a code box i am using $lr_permalink = get_permalink($post->ID); $lr_title = get_the_title($post->ID); Rating: 5