812 posts
  • 5 Years of Membership
  • Collector Level 2
  • Community Superstar
  • Exclusive Author
iamthwee
says

Not sure if this is the right section but am I adding code tags properly to the posts.

It is just when it parses the html entities don’t get shown in plain text.

Am I doing something wrong?

<?php /*Quick short code test snippet*/
function piecemaker_shortcode( $atts, $content = null )
{
  return '<div id="piecemaker?&gt;';

}

add_shortcode( 'piecemaker', 'piecemaker_shortcode');

?&gt;

The problems seems to occur here:

http://themeforest.net/forums/thread/integrating-shortcodes-in-wordpress/48811
2067 posts
  • Collector Level 3
  • 5 Years of Membership
  • Exclusive Author
  • United States
Landonw
says

Just don’t put the PHP tags – best way to go about it.

9 posts
  • 4 Years of Membership
TobiBlue
says
landonw said
Just don’t put the PHP tags – best way to go about it.

Thanks alot landonw, after including PHP tags all went well.

by
by
by
by
by
by