NOTE I don’t want the php code to be executed, only displayed. I want to display this php code <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); ?> inside a post. I cannot make it work. If I go to text type of editor and type <pre class=”lang:php nums:false”> <?php wp_enqueue_script( $handle, $src, $deps, $ver, […]
Tabs placed in a <pre><code></code></pre> block are stripped and line breaks are removed leaving a single continuous line of text. This occurs when switching from html to visual editors. Is there a setting in TinyMCE to avoid this? BEFORE: AFTER: Here it even garbles the code and spits parts of it out the <pre>… EDIT: […]
Is possible to exclude some files from being viewed and modified in the theme editor?
As you already know, WordPress manipulates posts, even if you write everything in Text mode. (replacing line breaks with \r\n ‘s , converting single quotes into double quotes etc.) I know this is good for helping us not to mess things up, however, in my case, I want to put HTML codes inside my post […]
In a perfect world, WordPress would take what I enter into the HTML editor and write it verbatim into the post/page document received by the browser. Disabling wpautop has already helped me slightly to this end. Alas.. Setup: I write some HTML into the editor and click UPDATE. My post/page is formatted correctly, but the […]
This question is about HTML code comments <!– like so –> rather than about post/page comments. I specify the WYSIWYG, but this problem arose in the HTML view, not the Visual. I’ve been building a site for a client, and she came to me with a problem — she had tried to comment out part of […]
I know it’s easy to disable WordPress from adding both p and br tags with: remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ ); but I want WordPress to keep adding <br> where there is a line break. I only use text editor, visual editor is disabled. It was working fine until the recent update to […]
I’ve been searching the codex, and I’m probably overlooking something somewhere, but could someone tell if it would be possible to remove a button/quicktag from the WordPress html editor?
I have some clients that are going to be using wordpress for their sites. I created custom fields for them to input data in so they don’t have to use the editor. How do I hide the page editor completely? I want it completely hidden so they don’t accidentally muck things up. Thanks!
I have a Multi-Site install running on the current version of WordPress (3.3.1). The problem I’m having is the ID’s are being stripped out of my tags in the editor. When I am logged in as a “Super Admin”, the ID’s are NOT stripped out. When I am logged in as an “Admin”, the ID’s […]