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
if i also want to display the content as formatted code in the box would i use
what i want to do is display the content of the post in a code box so people can copy paste it
thanks
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