812 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
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
2061 posts
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in United States
Landonw says

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

9 posts
  • Has been part of the Envato Community for over 3 years
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