Questions tagged [editor]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
290 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....
0
votes
1answer
260 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 ...
0
votes
1answer
40 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 ...
1
vote
2answers
385 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 ...
0
votes
1answer
25 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 ...
0
votes
1answer
11 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 ...
0
votes
1answer
330 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 ...
-1
votes
1answer
21 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 ...
1
vote
2answers
586 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. ...
0
votes
0answers
65 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 ...
0
votes
1answer
24 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 ...
0
votes
1answer
231 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');...
0
votes
1answer
143 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 ...
0
votes
2answers
6k 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, ...
0
votes
1answer
25 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....
0
votes
1answer
221 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 ...
2
votes
1answer
323 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('...
1
vote
1answer
154 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' ), ...
0
votes
2answers
3k 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: ...
1
vote
0answers
144 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 ...
0
votes
1answer
417 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, ...
1
vote
0answers
431 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
60 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
30 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
446 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
90 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
220 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
18 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
34 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...
2
votes
3answers
5k 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
22 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
56 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
311 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
33 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
44 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
2k 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
226 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
23 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
4k 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
2k 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
219 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
591 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
782 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 ...

1 2
3
4 5
11