{"id":1790,"date":"2013-10-25T14:35:18","date_gmt":"2013-10-25T14:35:18","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=1790"},"modified":"2023-12-29T00:59:54","modified_gmt":"2023-12-29T00:59:54","slug":"embedding-code-in-wordpress","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/embedding-code-in-wordpress\/","title":{"rendered":"Embedding Code in WordPress."},"content":{"rendered":"\n<p>So I need to use <a title=\"Simple Code Embed at the WordPress Codex\" href=\"http:\/\/wordpress.org\/plugins\/simple-embed-code\/\">Artiss Code Embed<\/a> a wordpress plugin designed to overcome the RTF editor&#8217;s unpleasant habit of converting code special&nbsp; characters to HTML.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>This <a title=\"Embedding Code at pacificu.edu\" href=\"https:\/\/web.archive.org\/web\/20170914133425\/http:\/\/wordpress.ed.pacificu.edu:80\/blog\/2012\/07\/16\/embedding-code\/\">article<\/a>, explains how to use it. I summarise,<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install the plugin,<\/li>\n\n\n\n<li>Turn on custom fields using the screen options tab in the right hand side of the screen<\/li>\n\n\n\n<li>Create a custom field. The field name needs a prefix defined in the &#8220;Code Embed&#8221; settings panel on the dashboard. The delimiters are also configurable. The defaults are CODE and %, but they could probably changed to allow {html<em>nn<\/em>}.<\/li>\n\n\n\n<li>The custom field is inserted into the wordpress post\/page.<\/li>\n<\/ol>\n\n\n\n<p>I have tested this using the paper.li headline widget, which I have placed in &lt;center&gt; tags.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><center><script src=\"http:\/\/widgets.paper.li\/javascripts\/sr.embeddable.js\" type=\"text\/javascript\"><\/script>\r\n<script>Paperli.PaperFrame.Show({id: '6e07072b-b16a-49b7-a044-7683423d5599', width: 450, height: 550, background: '#ECECEC', borderColor: '#DDDDDD'})<\/script><\/center><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>paper.li seems to have gone and so this doesn&#8217;t work any more.<\/p>\n\n\n\n<p>Next I need to experiment with css and the height and width parameters and then go back through all the posts in this wiki which have code embedded.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I need to use Artiss Code Embed a wordpress plugin designed to overcome the RTF editor&#8217;s unpleasant habit of converting code special&nbsp; characters to HTML.<\/p>\n","protected":false},"author":1,"featured_media":9892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[3],"tags":[579,576,577,1184,66,578,911,28],"class_list":["post-1790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-artiss","tag-blogging","tag-code","tag-deprecated","tag-plugin","tag-simple-code","tag-technology","tag-wordpress"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2012\/07\/deprecated-dfl1955-cc0-w1080.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=1790"}],"version-history":[{"count":15,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1790\/revisions"}],"predecessor-version":[{"id":9908,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1790\/revisions\/9908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/9892"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=1790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=1790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=1790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}