Siobhan Bamber (siobhyb) on "Adding HTML code to P2 posts"

ساخت وبلاگ

Hi Seth,

What specific default themes were you able to get this working with? I tested the <pre> and <code> tags with Twenty Sixteen and Twenty Fifteen, but the HTML did not display on either theme.

From the list of plugins and paste tools that I linked to, I gave the SyntaxHighlighter Evolved plugin a try (this is an Automattic-made plugin). The plugin enabled me to display HTML by wrapping it in [HTML] [/HTML] tags:

[HTML]<h2>Test</h2>[/HTML]

Could you give that plugin a try too? I think it may work well for you.

I'm also very happy to see that you're using P2! I agree that there's a lot of potential.

If you haven't already, then you may wish to consider experimenting with O2, also:

https://wptave.com/o2-is-now-available-on-github

If you download P2 Breathe and then activate O2, a "code" button will automatically appear in the front-end editor's toolbar that you can use to display HTML. This is the version of P2 that we use inteally at Automattic.

Let me know if you have any questions around the above.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 320 تاريخ : پنجشنبه 14 مرداد 1395 ساعت: 23:43