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
2064 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by