As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [editor]

'Editor' is one of several default user Roles in WordPress

Filter by
Sorted by
Tagged with
21 votes
5 answers
6k views

Resizing images to the actual size used in the editor?

Is there a way to resize images to the actual size they will be shown in the post? I have users that import a large image and then resize it in the visual editor. This is easy, since they can just ...
Jan Fabry's user avatar
  • 30.3k
8 votes
1 answer
5k views

Allow Editors to edit pending posts but not draft ones

I have a large number of users with Editor Capabilities that help to go through the post submissions. This is my current setup for this role: As you can see, they are allowed to edit_posts and ...
Christine Cooper's user avatar
  • 8,709
23 votes
7 answers
25k views

Extra TinyMCE editor strips <p> and <br> tags?

Hey guys, I've added a TinyMCE to some textareas that are displayed in a custom meta box. All of the formatting works perfectly fine, except that the editor will not save <p> or <br/> tags....
Pippin's user avatar
  • 4,816
2 votes
2 answers
1k views

Modifying the main editor priority

I want the main WordPress post editor to appear below some of my meta boxes (generated by Advanced Custom Fields). I know there are the add_meta_box() and remove_meta_box() functions, however it'd be ...
Ben Everard's user avatar
  • 1,228
7 votes
2 answers
30k views

Wordpress Image Editor not working - conflict?

I am having a strange issue with the built in wordpress image editor. I have no problem uploading files or preforming any other media functions. The only thing I seem to be unable to do is utilize the ...
NetConstructor.com's user avatar
22 votes
3 answers
18k views

Solution to render Shortcodes in Admin Editor

I have asked this question about a year ago and I am hoping there is some type of simple solution which will allow me achieve my objective. So here it goes: I often utilize shortcodes within the ...
NetConstructor.com's user avatar
10 votes
4 answers
29k views

Front end post editing using a form

I have a custom-post type with the standard meta boxes and some custom fields. How could I edit a post through a form in the frontend?
Carson's user avatar
  • 2,325
9 votes
2 answers
3k views

WordPress 3.9 - Trouble Editing TinyMCE 4.0

With WordPress 3.9 coming soon it's bringing along TinyMCE 4.0. I'm running my plugins and functions through some testing and found that one of my functions seems broken / not working with the new ...
Howdy_McGee's user avatar
  • 20.3k
6 votes
4 answers
6k views

Disable WYSIWYG editor only when creating a page

I read several articles about configuring the WordPress editor. For example, this snippet shows how to permanently set the editor to HTML or WYSIWYG for all contents. I'm wondering if it's possible ...
Simone Carletti's user avatar
4 votes
2 answers
13k views

How can I stop TinyMCE from converting my HTML entities to characters?

Here's the problem: I paste the HTML entity code for, let's say, a service mark (&#8480;) into the HTML view of the editor. As soon as I switch to the "visual" tab, my entity code is turned into ...
MathSmath's user avatar
  • 5,558
37 votes
11 answers
33k views

Stop Wordpress Wrapping Images In A "P" Tag

I have searched high and low for a simple solution to this, but to no avail. Wordpress keeps on wrapping my images in p tags and because of the eccentric nature of the layout for a site I am working ...
Dwayne Charrington's user avatar
8 votes
1 answer
11k views

Why is the visual editor in WordPress limiting the width by wrapping the content?

Why is the visual editor in Wordpress is limiting the width by wrapping the content? I found this behavior in the editor at least annoying, it does prevent me from using my screen real estate.
sorin's user avatar
  • 1,113
7 votes
6 answers
15k views

How to force TinyMCE in WordPress to replace newlines with <br> tags and not with <p>&nbsp;</p>

TinyMCE editor inserts <p>&nbsp;</p> instead of <br> tags when I press enter in my text for a new line. How to force TinyMCE in WP to replace newlines with <br> and not &...
Derfder's user avatar
  • 1,982
7 votes
4 answers
14k views

Adding a rich text editor to Excerpt

I need add to the excerpt field the TinyMCE Advanced editor, any ideas? I have the qTranslate plugin (multilanguage), and it's impossible to connect teh excerpt with this plugin and an editor. ...
Marta's user avatar
  • 183
4 votes
1 answer
3k views

How can I remove fields in the attachment editor?

Is it possible to remove a default attachment field from the attachment editor, for example the "Caption" field ? To give you some context, I'm trying to build a custom attachment editor page. I ...
mike23's user avatar
  • 5,933
4 votes
4 answers
12k views

How to create WP Editor using javascript

I am trying to create some kind of repeated fields and for that, I want to create a new wp editor with some unique ID. So my question is there any way to create wp_editor using any js? same as we ...
1naveengiri's user avatar
3 votes
1 answer
129 views

How to retain HTML5 Attributes on Markup

I have a page with certain html markup and element attributes as shown in the snippit below: <ul class="accordion" data-accordion=""> When I edit the page as a user with the WP Administrator ...
user avatar
3 votes
3 answers
2k views

How to Move the Author Metabox into the "Publish" metabox?

About a year ago I remember seeing a plugin or some code which allowed you to add an author dropdown menu to the post "publishing" metabox instead of it being on its own. I can't seem to find this ...
NetConstructor.com's user avatar
2 votes
2 answers
3k views

What's the Best Way to Edit WordPress Files?

I have just started hosting a blog using WordPress. Now, I want to start editing php files to customize (I am a programmer). What are my various options? Should I use FTP, download files and edit ...
user avatar
2 votes
2 answers
542 views

Getting archive pages in WP's AJAX internal link finder?

I often need to link to custom taxonomy term archive pages and would love to be able to do so through the AJAX internal link navigator added to the visual editor in 3.1. Is there any way to get this ...
supertrue's user avatar
  • 2,946
1 vote
2 answers
1k views

How can I allow editors to leave comments on posts that have not yet been published?

On my NFL football blog all users are allowed to make blog posts. New registrants are given contributor status. When users make a post it is reviewed by an editor, then the editor schedules the post ...
Travis Pflanz's user avatar
0 votes
3 answers
2k views

Automatically added brs and paragraphs?

Here's my very simple shortcode: function box_shortcode( $atts, $content = null ) { extract( shortcode_atts( array( 'width' => 'auto', 'height' => 'auto', ...
Wordpressor's user avatar
  • 5,001
13 votes
5 answers
7k views

Admin: very slow edit page caused by core meta query

We've been noticing really long load times when going to edit a post or page. Using Query Monitor, we found that this WP core query is taking upwards to 15-20s. SELECT meta_key FROM wp_postmeta ...
psorensen's user avatar
  • 487
11 votes
1 answer
3k views

How to use wpLink without editor?

I would like to create theme option to add a link. Loading these scripts and triggering the dialog works fine if wp editor is present. wp_enqueue_script('wplink'); wp_enqueue_script('wpdialogs'); ...
Benn's user avatar
  • 993
11 votes
2 answers
8k views

Disable Visual editor for all users

Is there a way to Disable the visual editor for all users without logging in and setting each user's setting in the admin panel, preferable some way to do it with code in the functions file?
JasonDavis's user avatar
  • 1,650
11 votes
2 answers
11k views

Open a Thickbox with content trough AJAX

I added a custom button to the TinyMCE editor, and I want to open WP's Thickbox when I click on it. How can I make it so that the tb_show() function loads the content I want with ajax? // the ajax ...
onetrickpony's user avatar
  • 13.6k
8 votes
3 answers
1k views

How to modify image editor dialog options on WordPress?

I am trying to hide the Alignment radio buttons for images uploaded to the post content area, but can't figure out how to add a custom CSS or JS file to the Image Editor dialog. I've successfully ...
handstand's user avatar
8 votes
1 answer
17k views

Is it OK to remove theme credits from footer? [duplicate]

The file named footer.php contains the copyright info: Designed by ... Is it OK to remove theme credits from footer? Is it legal?
Ionică Bizău's user avatar
7 votes
3 answers
7k views

How to add multiple buttons to TinyMCE?

I've followed a tutorial on Nettuts on how to add a custom button to TinyMCE (http://net.tutsplus.com/tutorials/wordpress/wordpress-shortcodes-the-right-way/) It works great and all, but i want to ...
sebfck's user avatar
  • 105
6 votes
3 answers
2k views

How to add "Stick this post to the front page" to front end?

I have a baseball related website with multiple authors. I use the "Stick this post to the front page" to denote an "Editor's Pick" on an article. I would like to add a link/button to allow editor to ...
Travis Pflanz's user avatar
5 votes
1 answer
3k views

How to enable edit button in the theme's customize UI?

I saw on WordPress.com's theme customizer has this little blue (with a pencil icon in it) edit icon, they are SUPER user friendly! But seems default wordpress.org installation does not have it! Is ...
Ezeewei's user avatar
  • 185
5 votes
7 answers
15k views

Add quicktag buttons to the HTML editor

I am trying to figure out how to modify the HTML editor in wordpress; on the image below you can see a screenshot of the editor and the buttons on the top. Is it possible to add new buttons? I would ...
JasonDavis's user avatar
  • 1,650
5 votes
4 answers
7k views

Re Order Editor to be after meta box [duplicate]

I want to reorder stuff in a custom post. I got the meta box and editor working together, but currently the editor is above the meta box and I need it to be the other way around. This is the code ...
Sagive's user avatar
  • 2,772
5 votes
4 answers
10k views

WordPress admin screen very slow / timing out when editing or adding a new page/custom post

I'm new to the site but appreciate any help you can give. I have a WordPress set-up which (rightly or wrongly) has hundreds of pages and thousands of another custom post type which is also based on a ...
Nick Davis's user avatar
5 votes
3 answers
3k views

how to limit edit_form_after_title hook to page and post edit only?

heelo, I want to use this great hook edit_form_after_title it was announced on December 1, 2012: http://make.wordpress.org/core/2012/12/01/more-hooks-on-the-edit-screen/ it curreclty hook for : ...
DrMosko's user avatar
  • 791
5 votes
1 answer
2k views

Stop certain classes showing up in TinyMCE Advanced Style dropdown

I'm using the TinyMCE Advanced plugin so that I can add my own custom styles to the Style dropdown in the Visual Editor. However, I don't want some of the styles that are included in the style.css ...
robintw's user avatar
  • 175
5 votes
2 answers
5k views

When switching from html to visual editor the <iframe> tag gets corrupted

I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever. When I type this into the HTML editor field.. &...
jeffkee's user avatar
  • 173
4 votes
8 answers
18k views

How to see files in directories in "Edit Themes" screen

I like to have folders in my theme folder for scripts and styles, but I can't access these folders in the "Edit Themes" interface. This is problematic for clients that don't give me FTP access. Is ...
Voriki's user avatar
  • 101
4 votes
2 answers
11k views

How to add a class to ul tags created by the WordPress editor Tinymce?

I want to set a special styling for the ul tags created by Tinymce only, which means only for posts and pages, I only found this filter tiny_mce_before_init with an example on how to add custom style ...
Pierre's user avatar
  • 1,014
4 votes
5 answers
11k views

Simplest way to add a second html editor to the post/page admin?

What's the simplest way to add a second HTML editor to the post/page admin and show the content in a template? What I need is something like a custom field that supports html, but I don't need the ...
markratledge's user avatar
  • 8,548
4 votes
1 answer
2k views

How to group meta boxes on the post edit page

I suspect that this is not possible right now, but oh well.. I'll ask, maybe one of you has some intersting thoughts to share. So let's say we have the following taxonomy terms meta-boxes on our post ...
mike23's user avatar
  • 5,933
3 votes
1 answer
3k views

Disable text tab on WordPress text-editor

I'm looking for a way to disable text tab on wordpress text-edito (red square on the pic) for all my users roles except ADMINISTRATOR because i don't want them to have the possibility to add ...
Samuel's user avatar
  • 314
3 votes
1 answer
2k views

How to remove specific panels in the editor (Gutenberg) when editing a block (via right panel)?

In the editor (Gutenberg) is there a way to disable specific settings in the right panel of a specific block? For example each button in the buttons block has these settings I would like to disable: ...
bigdaveygeorge's user avatar
3 votes
3 answers
6k views

Disable escaping html

I'm using SyntaxHighlighter Evolved to highlight code examples. E.g. [csharp] string s = "text"; List<int> numbers = new List<int>(); [/csharp] When I first save it, it's ok, but when ...
Mike Koder's user avatar
2 votes
2 answers
485 views

Why is WordPress WYSIWYMG and how do I make it WYSIWYG?

WordPress may have a text editor that appears to be WYSIWYG, but upon using it I discovered that it is actually WYSIWYMG- What You See Is What You Might Get (once it's done screwing with the HTML). ...
EpsilonVector's user avatar
2 votes
2 answers
3k views

TinyMCE Autoresize

Looking for a way to make the TinyMCE editor always relative to it's content so that the height of the editor changes accordingly to how much text/images it contains. There seem to be plugins for ...
INT's user avatar
  • 1,251
2 votes
1 answer
140 views

Are there any Worpdress plugins to change the theme editor?

I've been browsing around a bit, but haven't been able to find any plugins for changing the default theme editor. Currently it's a text area with no syntax highlighting. I'd like something that at ...
Jack Slingerland's user avatar
2 votes
1 answer
362 views

Want to have the Post editor remembering the last editing position

As you probably know the WordPress theme editor remembers its last editing position, but I want my post editor to do the same (it jumps to the top if you save a post/page).... Any tips/hacks how to ...
user avatar
2 votes
1 answer
2k views

Open posts in editor in the 'Text' mode by default

I have a few posts where there are some code segments. When I try to make small edits in the post, it opens in the 'Visual' mode and all the non-alphanumeric characters (e.g. >) are converted to ...
Unos's user avatar
  • 121
2 votes
2 answers
3k views

How can I pass $post object to 'save_post' add_action?

I have several functions that are called from inside a save_post function. However, all of the functions that use the $post object are returning incorrect values because it appears that the default ...
Scott B's user avatar
  • 5,636