For example i am writing this html code into comment textarea

<pre><code class="language-php"><?php echo esc_html( get_post_meta( get_the_ID(), ‘_spp_count’, true ) ); ?></code></pre>

But it looks like this:

enter image description here

  • Can you clarify, are you wanting to embed that code so that others can view it? Or are you trying to execute that code as PHP code? – Tom J Nowell Oct 8 '18 at 22:20
  • Yes i am trying to embed code to show others. – bilimokur Oct 9 '18 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.