812 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
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
2004 posts
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
  • Exclusive Author
  • United States
Landonw says

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

9 posts
  • Has been a member for 2-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