Questions tagged [editor]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
454 views

Add buttons to the new TinyMCE WP Editor. Javascript API

I've added more buttons to a TinyMCE instance using the new Javascript API available since WordPress version 4.8. As you can see in the following code block, I could add more buttons but I'm not ...
0
votes
1answer
125 views

How to show post title in content editor in backend?

Is this possible? I am trying to use a pre-defined template for my contents. To do that, I use something like this: add_filter( 'default_content', 'custom_editor_content' ); function ...
1
vote
0answers
44 views

Trying to Edit a Page but it sends me to a Product Edit page

I have the strangest issue that I encountered. I have updated the newest version of Wordpress and installed Google Analytics GADWP Plugin and Yoast SEO. (I don't think this is the issue though) When ...
3
votes
1answer
2k 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 ...
0
votes
2answers
32 views

How to create different gallery-types and let the editor choose between them?

What I want to achieve The editor should be able to add galleries via the native wordpress way and choose between 3 different gallery types. These 3 types should all have their custom code-output, ...
0
votes
1answer
489 views

Capabilities not working with custom post type

I have created a custom post type called Alerts. I want Editor users to be able to have full permissions to publish and edit alerts. I copied all of the capabilities of an administrator to satisfy ...
0
votes
0answers
118 views

Dynamically write in editor with Javascript

Let's assume I'd like to add a button to the wordpress article/page editor. The goal of that button is open a popup. The popup should contain options to automatically write a shortcode in the text. ...
0
votes
1answer
319 views

Using custom HTML tags to WordPress [closed]

Similar to, for example, <blockquotes>, I also work with, for example, custom <blocktips> styled with :before and :after elements to be used regularly on a site. After styling, these are ...
2
votes
0answers
38 views

How can I get the post content displayed in a text field that allows to edit posts?

I replaced my WordPress TinyMCE editor with a custom textarea field. Everything works well when saving the post but whenever I want to edit the post, the textarea field goes blank. I just want to ask ...
0
votes
1answer
19 views

Pasted image and text in the editor doesn't work

When I paste my image + text code in the "HTML" part and go to preview there should be my picture plus the link imbedded. It isn't working, the only thing showing is the text that I just pasted. Can ...
1
vote
3answers
39 views

Edit the archive-{custom_page}.php via WP editor

Is there any way to edit the archive-{custom_posts}.php page via the WP page editor? I wan't to add some custom text and links...
3
votes
3answers
9k 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 ...
0
votes
1answer
24 views

How do I add one more status as “edited by editor”?

How do I add one more status as "edited by editor"? The reporter write an article. Then editor edit the article and set the status as "edited by editor” Is that possible?
1
vote
1answer
95 views

Hide editor with specific post meta value

Is there a way to remove the post editor with specific custom post meta? Supposed that I have a key edit where a put the string "true" or "false" and I want to show the editor with true and hide ...
1
vote
2answers
2k views

wp.media edit attachment screen

I've read a couple of things about the wp.media object and have successfully initialised in the state that I can find to upload images. But for the plug-in that I am building I need to have the same ...
0
votes
1answer
24 views

how to update editor content from metabox

hello am trying to update and add editor content from metabox not using the default editor so i tried to use wp_update_post($array); but doesn't work it cause issue Fatal error: Maximum ...
1
vote
1answer
376 views

How to disable YouTube (and any other oembed) embeding in the editor

It is easy to disable oEmbed on the front end Disable automatic oEmbed of a youtube url within the content, but this leaves us with the editor shows a video (in the case of youtube) where on the front ...
1
vote
0answers
36 views

How to get media source of text editor in WordPress

I want to get source of files when I click add media. Suppose, when I select a pdf file I get <a href="http://thedomain.com/wp-content/uploads/2017/04/myfile.pdf"rel="">myfile</a> in ...
0
votes
0answers
48 views

How to allow some visitors to edit inline specific post

I would like to allow some determined people to be able to edit a determined post via the front end. For example, let say, I have two posts A & B then I want Alice to be able to edit post A but ...
0
votes
1answer
3k views

Wordpress wraps span tags into p tags

I am trying to get rid of the undesired behavior. TinyMCE after submitting a post wraps my <span> tags into the <p> tags. Here is an example <div class="conten__title-wrapper"> ...
0
votes
0answers
307 views

remove public static function wp_link_dialog()

How can remove public static function wp_link_dialog() from class-wp-editor.php by adding a code inside function.php of my theme? My theme use WordPress editor at the frontend of the site and this ...
0
votes
1answer
24 views

Inserting javascript file into theme template?

Is there any way to insert an existing .js file into a themes editor in the appearances section? So that you can click on it and edit it like you can a PHP file or the CSS file, I haven't been able to ...
1
vote
1answer
2k views

Insert image in WordPress with HTML5 <figure> tag and caption function

When I upload an image through the WordPress media uploader and then insert it into the editor, it comes also with the width and height attributes (eg width="440" height="340") But now I'm using the ...
1
vote
2answers
5k views

Delete mobile menu button [closed]

I'm doing a project for a web-based app. It is the first time I use wordpress and I have found that I can not edit the template (the "edit" option does not appear in appearance.). And I need to see ...
2
votes
2answers
3k views

Content editor creating blank paragraphs in spaces and creating &nbsp in the_excerpt

I see that in other sites that use wordpress this does not happen, so I would like to know how to space without creating a blank paragraph or a &nbsp ? As you can see in the image, in each space ...
0
votes
1answer
239 views

Feauterd image meta box not showing up

I Updated my wordpress from 4.6 to 4.7.2 last night and now i can see that in the post editor in admin panel there is no meta box for selecting the featured images. I also did some editing on the ...
0
votes
2answers
753 views

Publish, Save Draft and Preview buttons do not work after being moved with jQuery

I'm trying to change the layout of the post-new.php page and as part of this I would like the publish, save draft and preview buttons below the form rather than to the right. So in my plugin js file ...
0
votes
1answer
846 views

Add WordPress Core CSS into editor-style.css

I am using a custom child theme (from Parabola, Cryout Creations, lastest version), but it seems that the editor-style.css file is not up-to-date. Rather than rewriting everything, I would like it to ...
0
votes
1answer
36 views

Make a script work within a page

I have this code from a third party, with no instructions whatsoever, and I can't manage to make it work within a WordPress page. It's supposed to show a carousel of items. Can this even go inside ...
0
votes
1answer
664 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
643 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
166 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
437 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
185 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 ...
4
votes
1answer
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 ...
3
votes
1answer
919 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
375 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
663 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
424 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
36 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
436 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
204 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
1k 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
113 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
540 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
255 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
8k 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
212 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 ...

1 2 3
4
5
11