Questions tagged [editor]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
568 views

Is it possible to disable the image alignment options in the post editor?

By default, when you insert an image into a post, it has some image alignment options (see below). In my theme I want every image to be full width. Of course, it's easy for me to change the front-end ...
1
vote
1answer
494 views

In editor-style.css how can I change background color of title field?

When editing a page or post, I would like the title field to have a different background color from white. I have tried the following but it doesn't seem to work: #titlediv #title { background-...
1
vote
0answers
164 views

Lost draft under all posts and drafts

I'm trying to delete drafts that I've never created. I suppose they are auto drafts. Searched and searched but maybe because it's a super easy fix that no one asks, but can't figure out how to ...
0
votes
1answer
390 views

wp_editor some functionality not working on custom theme

I am creating a custom theme. In this theme I have some custom options in the edit page screen. For this I have a custom button which appears and when clicked it opens a overlay div which I created (...
0
votes
1answer
131 views

Visual editor popover or placeholder

I am using the tinyMCE visual editor to allow users of my site to submit some content. I would like to layout the guidelines of their post to them (eg: "Be specific, be thorough"). The most obvious ...
3
votes
1answer
2k 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 ...
3
votes
1answer
768 views

How to enable the theme editor cap for an editor role?

I am trying to add/enable the theme editor for the editor role. The editor role by default doesn't have the option to manage theme options, so I addded this to functions.php: // get the the role ...
2
votes
2answers
315 views

How to apply editor filter to posts with a specific custom post type

How can we apply filters only to posts with a specific custom post type? I would like some of my custom posts to start out in HTML mode for their editors. This is what I am working with so far... ...
0
votes
1answer
537 views

What's the best way to trim content from WYSIWYG editor?

I have done an excessive amount of googling and haven't found exactly what I need yet. The client uses the editor (WYSIWYG) to create posts. She adds photos, links to external photos, videos, embeds ...
1
vote
0answers
349 views

Add Attribute to p Tag of Post Content

I would like the default <p> elements that are added to the (TinyMCE) editor when users post content, to have a dir attribute as well. Reasoning: When the editor is displayed to users, it is ...
-1
votes
1answer
34 views

How can I replace the built in WordPress editor?

I find the default editor included in a new WordPress installation quite clumsy and frustrating. There are a great many other, better HTML editors out there. Is it possible to replace the default with ...
1
vote
1answer
417 views

Make nav-menus.php available for editor

I've removed the 'Appearance' menu from the admin sidebar : function clean_menu() { remove_menu_page( 'themes.php' ); } add_action('admin_menu','clean_menu'); Then, I added the nav-menu.php ...
4
votes
1answer
172 views

How to display warning on post editor when trying to add new term to custom taxonomy?

i have a function i use to stop users from adding new terms to custom taxonomies, this is the code: add_action( 'pre_insert_term', 'prevent_terms', 1, 2 ); function prevent_terms ( $term, $taxonomy ) ...
3
votes
1answer
783 views

Give editors access to particular plugin - turn “admin.php” into “edit.php”

I'm using the Business Opening Hours plugin. I made it appear in the sidebar using the Client Dash plugin, but when the Editor clicks it, they cannot access it, only the Admins, how can I change that? ...
5
votes
1answer
101 views

WordPress 4.6 link edit dialog is too rudimentary

In earlier than 4.6, one could, with 1 click, edit all the properties of a link: Now, thanks to the "all new and improved 4.6", the dialog has been turned into this: I understand that this makes it ...
1
vote
1answer
437 views

how to add custom css and js on wordpress post editor directly without using .php file

I am trying to add some css and js code to my home page editor at the wp-admin. I am using simply <script type="text/javascript"> jQuery(document).ready(function($) { $('.x-feature-box')....
0
votes
1answer
33 views

Editor role isn't seeing specific post type posts with only post_type parameter

The editor role is able to open following URL: https://example.com/wp-admin/edit.php?booking-status=booked&post_type=booking But not able to open following URL: https://example.com/wp-admin/...
1
vote
1answer
172 views

Advanced Custom Fields plugin - get text from editor field and save it in a variable

In ACF I added a custom editor field but when I try to save it's text into a variable and output the value with js to the console it gives me an empty string. Here's my code: <?php $test = ...
1
vote
1answer
6k views

Creating table layout in WYSIWYG editor

I am having a design as mentioned in the image. The content for these should go in a widget. How I am achieving this right now is: by editing it in the WYSIWYG editor by using spaces between the ...
1
vote
1answer
142 views

Add default text to multiple wysiwyg editors

I have a custom post type which has multiple wysiwyg editors within the same post. When creating a new post of this type, I wish to have default text in some of these wysiwyg editors but not in the ...
0
votes
0answers
21 views

How to register data-accordion as an allowed attribute [duplicate]

Continuing my now protected question from earlier at How to retain HTML5 Attributes on Markup: How do you "register data-accordion as an allowed attribute" @Rup ? I looked at the Codex and it is not ...
3
votes
1answer
113 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 ...
0
votes
1answer
103 views

bulk media crop for featured images

I want to select all the images which are used as "featured image" on woocommerce products and modify and crop the images to fit a specific height. Does anyone know if there is a plugin available or ...
1
vote
1answer
598 views

Is there a way to show only the text editor

I'm working on a desktop app and I'd like to show only the editor and it's toolbar. I'm able to load and save the past content easily enough through the app but I'd like to be able to reuse the ...
1
vote
1answer
3k views

Open link in a new tab checked by default when adding a new link in visual post editor

When adding a link in the WP visual post editor you have to click the settings after adding the link and then click the Open link in a new tab to have it add a link with a target in a new window/tab. ...
0
votes
1answer
761 views

stop Wordpress removing shortcode from content [closed]

I've found that Wordpress is removing &nbsp; from my content, so from this page, I added the following to my functions.php: function nbsp_shortcode( $atts, $content = null ) { $content = '&...
0
votes
1answer
161 views

How to add custom 'layout' buttons to wordpress editor?

I'd like to modify the editor by adding some 'layout' buttons. Ideally, I'd like to add the ability to add some html 'partial' by simply clicking a button. This is to help my client to create pre-...
6
votes
2answers
1k views

Why did multiple line breaks stop working in text editor?

# Adds ability to add break tags on posts remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); add_filter( 'the_content', 'nl2br' ); add_filter( 'the_excerpt', 'nl2br'...
0
votes
1answer
67 views

How to add content with a filter when there's no content in the editor

I'm building a plugin to create page sections (with ACF and repeater field) and I want to add the sections at the end of the content. The sections are added to the content, but only when there's ...
0
votes
0answers
42 views

Limit editing capabilities to one page [duplicate]

I have one user on WP website. I want to give him editor role because he need to edit pages and as I see - edit_pages capability requires user to be at least editor. The problem is that i want to ...
0
votes
1answer
403 views

WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance

I am having an issue with initializing the inline link toolbar in a custom instance of the WP editor. The instance is added in a dynamically loaded modal using the wp_editor function and some ...
0
votes
1answer
256 views

Why WordPress not using WP_Filesystem

On wp-admin/plugin-editor.php and wp-admin/theme-editor.php, why WordPress not using $wp_filesystem to read and modify the file? if writing and modifying file do not require wp_filesystem then when to ...
0
votes
1answer
104 views

Password protected uploaded PDF page

I created a custom post-type called "designs" for this case. So I want the client to go to his backend and click "Create new Design", this will open up the create page screen, now I want my client to ...
0
votes
0answers
23 views

Image Post creates unusual extra HTML

When I post an image using WordPress, I'm getting additional HTML being created which spills out after the image. E.g. see http://www.snowcrash.eu/typing-pinyin-on-a-mac/ The HTML in Text Mode of ...
1
vote
0answers
41 views

Editors change a permalink on an unpublished post, but only admins change a permalink on a post that has ever been published?

Is it possible to have the Editors to change a permalink on an unpublished post, but only admins change a permalink on a post that has ever been published? I can hide the button for non admin but I ...
-2
votes
1answer
1k views

Why are many options missing from the editor?

I want to say for the record that I'm extremely new to anything related to Wordpress. So my editor looks like this: I see all sorts of screenshots and blog-posts everywhere that show a much much ...
1
vote
0answers
436 views

Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly

Theme: Hemingway, Twenty-Sixteen Host: Bluehost Browser(s): Safari, Chrome OS: OSX El Capitan 10.10.5 (14F1605) Website When I try to "Edit Page" visual editor screen is blank, in both Text and ...
1
vote
1answer
1k views

Prevent WordPress from messing my HTML

Is there a way to prevent WP from modifying my perfectly fine HTML? When writing content of a page, I'm writing a list as <ol> <li>Paragraph 1 : text Some more text</li> <...
6
votes
2answers
267 views

Let private posts stay in status “private” after edit through “editors”

I'm using some private posts for intern purposes. When an editor changes something on these posts, its status turns to pending "review" and I have to publish it again as a private post. When an ...
0
votes
1answer
171 views

How to hide editor, but keep media library access

How do I hide the editor from a custom post type, but retain the ability to access the media library? I have registered a custom post type and created a meta box for it that allows users to upload ...
0
votes
1answer
379 views

Save editor's value in user meta and retrieve it

I am making user meta fields. I have to implement a field named business_profile and implement editor on it. I have implemented the editor but I can't seem to either save its value or retrieve it. ...
1
vote
0answers
145 views

How can I register a custom “Text Pattern” (WP 4.3) for TinyMCE?

WP 4.3 added some really cool editor features: https://make.wordpress.org/core/2015/08/01/editor-enhancements-in-4-3-%E2%9C%A8/ The "Text Patterns" are really useful to create lists, quotes ...
2
votes
3answers
1k views

How do I remove or disable “Or link to existing content” in “insert link” dialogue?

Don't ask why. Image below pretty much ask what I'm looking to achieve:
1
vote
0answers
122 views

CKEditor: Uncaught TypeError: switchEditors.switchto is not a functiononclick

Only the buttons Add Media, HTML and Visual show up after installing CKEditor for WordPress. In addition, encounter the following error while clicking to HTML or Visual by using the tool Inspect ...
1
vote
1answer
135 views

Replace image caption with its title and description

Is it possible to replace the caption text of an image with its title and description fields when inserting it in the editor? If so, how? Thanks in advance
0
votes
1answer
41 views

Editor / Add Media: Is it possible to only allow galleries?

I am writing a theme for a client where the employees sometimes have trouble using Wordpress correctly. I am using custom fields to let them add a gallery to a portfolio item (which is just a custom ...
0
votes
2answers
1k views

How to add HTML5 required on wp_editor

I want to add HTML5 required for the client side validation on textarea generated by <?php $content = ''; $editor_id = 'YOURID'; wp_editor( $content, $editor_id ); ?> What is the ...
1
vote
1answer
88 views

Always paste as a text in visual editor

I am running a multi author blog. I allowed only visual editor for authors. So, i don't want to allow them to paste disallowed html tags from other source. I want, text will always paste as plain text....
11
votes
1answer
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'); ...
5
votes
1answer
2k views

Force TinyMCE editor's “Toolbar Toggle” to be automatically chosen & expanded

A common problem we have with new Wordpress installations and particularly new users, is that their "Toolbar Toggle" button is not selected by default, and therefore the second line of the editor ...

1 2 3
4
5
11