Questions tagged [editor]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
298 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
8k 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
86 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
363 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
46 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
289 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
237 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
719 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
844 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
645 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
603 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
426 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
175 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
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
875 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
364 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
642 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
399 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
434 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
197 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
987 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
112 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
514 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
232 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
205 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
119 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
133 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
725 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
809 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
214 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-...
7
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'...

1 2 3
4
5
11