Questions tagged [editor]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
3k views

Inline style HTML attribute is being stripped from all elements of a post

I am attempting to publish HTML generated from an external party within Wordpress, but I am getting very inconsistent results with style attribute on all HTML elements, in that if I programmatically ...
Mattisdada's user avatar
2 votes
1 answer
464 views

Add option for editors through `register_setting`

I want to add some options in wordpress admin panel which editors also can update through a form. I have used register_setting() function to add those options. For administrator this works fine, but ...
chanchal118's user avatar
0 votes
2 answers
100 views

Disable Plugin with one button

After updating to 4.9, my Appearance editor becomes empty, and if one plugin has a problem, I need to disable all the plugin one by one which takes really long time and all I just need just update the ...
user147284's user avatar
0 votes
1 answer
21 views

Allow contributors to edit their own images

We are trying to create a site in WordPress that will allow visitors to the site register and upload their own content and images. I want them to be able to edit and delete their own images once they ...
Mick's user avatar
  • 1
0 votes
0 answers
1k views

Create Button for Shortcode in Text Editor

I'm trying to figure out how to create a button in the WP Text Editor and TinyMCE Editor to trigger the following shortcode. It's a shortcode to create columns (connected with CSS Grid Foundation), ...
Mathieu Préaud's user avatar
2 votes
1 answer
1k views

How can I get the permalink of a post before it is published?

I'm trying to create a plugin that gives you a push notifications button, through the WordPress editor and I can't find a way to get the permalink of a draft post before its status is set to published....
Yoni hodeffi's user avatar
0 votes
1 answer
382 views

wp_editor embed shortcode not working within my plugin

for my own plugin I have a create-form which includes at least two editor fields and I insert them like this wp_editor('', 'dbfield'); The editor is shown in the form, it gets saved into the ...
user20837's user avatar
0 votes
1 answer
45 views

incorrect url in Snippet editor

I am using Wordpress version 4.9.6 with Yoast SEO premium version 7.5.3. The trouble I am having is when I enter the Slug info in Yoast it then adds it to the URL in the Snippet editor, but it is ...
Gordon Joy's user avatar
1 vote
2 answers
600 views

Cannot access WordPress Appearance → Editor

I altered some functions in the PHP file of my website using WordPress Admin Panel: Appearance → Editor Now not only has my website been destroyed, but also the WordPress dashboard. I cannot access ...
pho_pho's user avatar
  • 113
0 votes
1 answer
34 views

Disable File Editing function

Researching fixing errors while validating my site, I got brave and clicked Enable button at Appearance > Editor and went pass the "warning" - now getting nervous bc don't want to accidentally mess ...
Ann's user avatar
  • 1
0 votes
1 answer
16 views

Is it possible to remove the content editor (RTF field) for a certain user / role?

As per the title really, I'm wondering if there's a way to hide the main content editor for posts and pages from certain users / roles but let everyone else see it? I believe you can hide it ...
Mark Bowen's user avatar
0 votes
1 answer
594 views

Permanently show Custom Fields in Editor

I would like to show certain Custom Fields below my Editor. At the moment I only have athe dropdown field but there's so many metas inside which I am not using. By publishing 60-100 posts a day it is ...
mad2kx's user avatar
  • 162
-1 votes
1 answer
25 views

Adding custom shortcode to page leads to page without styling

Scenario i wanted to build Reusable components people can use several times inside my WordPress environment. My solution for the problem I made a custom post type named "Componenten". I made a ...
El Klo's user avatar
  • 5
1 vote
2 answers
1k views

How to make content editable from admin page?

I have a landing page that has to be somehow converted into wordpress theme. And what I want to do is to make an admin page with editable fields that will correspond to the content on the front end. ...
Michael Kopytin's user avatar
0 votes
0 answers
72 views

Visual editor on front-end call not working properly

Since the upgrade of WP to 4.9.4, I am having a problem with WP's native editor in the front-end. The Text option are working but for Visual option, no buttons appearing and the texts are white. ]2 I ...
Paolo Medina's user avatar
0 votes
1 answer
57 views

Problem with some keys when editing HTML in wordpress "text" editor

My wordpress 4.9 editor for posts has two editor views Visual Text I am mostly using the text view and often adding shortcuts. Sometimes I directly add HTML5 code, e.g. for tables. However, these ...
Craig  Hicks's user avatar
0 votes
1 answer
388 views

Add editor toolbar to Metabox

I have multiples Metaboxes like this one : function initialisation_metaboxes_home(){ add_meta_box('home_extract_meta', 'Affichage home', 'ma_meta_function_home', 'produit_fr', 'normal', 'high');...
Ankomm's user avatar
  • 103
0 votes
1 answer
172 views

Preserve indentation, HTML5 shorthand in editor

I know there are other questions about tinyMCE, but this one is a little different. Let's say I create an unordered list that drops the closing li tags. I also have class attributes that I don't want ...
3x5's user avatar
  • 133
0 votes
2 answers
11k views

Which PHP page is the Default Posts Page

I'm busy customizing a WordPress site using the standard twentyseventeen theme, and I need to show custom fields (produced per post, by plugin) in the exerpt of each post on the Posts Reading Page, ...
Johan Brink's user avatar
0 votes
1 answer
36 views

Prevent editor from adding script or form

For security reasons (e.g. preventing an editor to create a form that mimics the login form and send the credentials anywhere), we'd like to forbid editors to insert JavaScript or Forms into the pages....
E. Jaep's user avatar
  • 109
0 votes
1 answer
461 views

Why wordpress word count differs from Microsoft word and sites like wordcounter.net

My authors are questioning the accuracy of word count in wordpress. Wordpress word count seems to vary from microsoft word document and sites like wordcounter.net Moreover, I manually created php ...
Parth Patel's user avatar
2 votes
1 answer
568 views

Ajax Redirect role = 'Editor' to their Dashboard after register

How to redirect the user with role Editor to their respective dashboard after register? Here is the Ajax Script: wp_localize_script('jquery_login','ajax_object',array('ajax_url'=>admin_url('...
DHL17's user avatar
  • 621
1 vote
1 answer
336 views

Multiple choice in a custom taxonomy

I've add a custom taxonomy in my function.php. Here the code: function create_autor_nonhierarchical_taxonomy() { $labels = array( 'name' => _x( 'Autor', 'taxonomy general name' ), ...
Stefano's user avatar
  • 91
0 votes
2 answers
4k views

Troubleshooting "loopback requests that take too long"

So I am dealing with this dreaded "unable to edit php files" errors after updating to 4.9.1 I disabled all of my plugins, and I am still getting the following error though the Health Check plugin: ...
randy's user avatar
  • 11
1 vote
0 answers
209 views

Wordpress editor converted/deleted HTML entities code

2x WP 4.9.1 (old and updated with database utf8 / new with new database utf8mb4) I have a problem with HTML entities in the Wordpress standard editor. I write the HTML entities in hexadecimal code ...
Suka's user avatar
  • 11
0 votes
1 answer
2k views

Removing add new pages form editor role

Hi I have set up multisite and I am the super admin. I want to remove the capabilities of "Editors" to add new pages. I made this change to my theme function, which removed what I want it too, ...
Paul's user avatar
  • 11
1 vote
0 answers
465 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 ...
Andrei Surdu's user avatar
0 votes
1 answer
281 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 ...
Siyah's user avatar
  • 193
1 vote
0 answers
51 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 ...
Andrew Lee's user avatar
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
0 votes
2 answers
34 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, ...
kater louis's user avatar
0 votes
1 answer
626 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 ...
Michael's user avatar
0 votes
0 answers
156 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. ...
Sampgun's user avatar
  • 101
0 votes
1 answer
392 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 ...
Renier Delport's user avatar
2 votes
0 answers
39 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 ...
Abiodun Adetona's user avatar
0 votes
1 answer
26 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 ...
user125711's user avatar
1 vote
3 answers
44 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...
D_P's user avatar
  • 141
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
0 votes
1 answer
26 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?
e12345678's user avatar
  • 111
1 vote
1 answer
187 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 ...
Salvio's user avatar
  • 85
1 vote
2 answers
3k 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 ...
Danny van Holten's user avatar
0 votes
1 answer
31 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 ...
Mouner Mostafa's user avatar
1 vote
1 answer
470 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 ...
Mark Kaplun's user avatar
  • 23.1k
1 vote
0 answers
45 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 ...
Kallol Das's user avatar
0 votes
0 answers
60 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 ...
corentino's user avatar
0 votes
1 answer
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"> ...
CROSP's user avatar
  • 437
0 votes
0 answers
521 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 ...
Yogu's user avatar
  • 85
0 votes
1 answer
25 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 ...
Matthew Kelly's user avatar
1 vote
1 answer
3k 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 ...
Learning by doing's user avatar
1 vote
2 answers
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 ...
Andres Rivera's user avatar

1 2 3
4
5
12