Questions tagged [editor]
'Editor' is one of several default user Roles in WordPress
561
questions
1
vote
0
answers
225
views
Set featured image using javascript in post editor
I have built a plugin that will auto-generate an image based on some variables in the post the user is writing. They have the ability then to set some colors and stuff to make the image look nice. ...
2
votes
1
answer
1k
views
Stop WordPress editor embedding links
There are several posts about this, - but I suspect that it has changed after Gutenberg, since I can't get either of the methods to work.
I'm trying to stop WordPress embedding links, when written ...
1
vote
3
answers
1k
views
Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?
Edited for clarity and to display steps we take to reproduce the issue.
Question
What would cause absolute URLs on our staging site to prepend the staging site's subdomain to them when saved in the ...
1
vote
2
answers
2k
views
How to get value of selected page template in Gutenberg editor?
How to detect the value of selected page template in the edit page? I have used jQuery to select the page attribute select box but it is not working when we hide the editor sidebar; Because it removes ...
0
votes
0
answers
225
views
Wordpress not saving <p> tags for custom taxonomy term description
I'm using wordpress API to display content. I'm using the classic editor since guttenberg is bugging out elsewhere.
I noticed that if a paragraph does not have inline styles, wordpress does not save ...
0
votes
2
answers
843
views
Is it possible to remove editor from a custom product type?
I want to remove the editor and set up only the excerpt to a custom product type (WooCommerce) in my theme, is this possible?
This is how i add my custom product type to the WooCommerce product type ...
0
votes
0
answers
367
views
Failed to load resource: the server responded with a status of 500 () post.php
I got no error in my Admin panel
but when I define a new editor or author role
when the user goes the panel to edit or add new page
nothing works, no button, no page builder and nothing
and He got ...
1
vote
1
answer
873
views
Edited Child Theme's "header.php" but it doesn't appear to change the file
So I logged into FTP and navigated to /wp-content/themes/MyChildTheme/ and edited the header.php file. I saved the file and uploaded it and I can confirm the file has changed because if I check via ...
2
votes
1
answer
141
views
Remove all table widths from editor content
When I paste a table into the WordPress editor, I always get widths like <td width="232">.
I want to remove all widths when tables are added to the editor.
If it was regex, I would write ...
2
votes
2
answers
2k
views
How to remove these comments and html tags from the content?
These are actually input fields.
paragraph is the textarea field.
i query the contents from database and try to show them in this textarea field.
But the textarea field is showing me unwanted comments ...
0
votes
1
answer
101
views
Unable to edit and see content of pages
I am not able to see the content of my WordPress pages. Only header and footer is showing on my web pages.
When I am visiting these pages I am not able to see any content except header and footer ...
2
votes
1
answer
1k
views
Add table controls with wp_editor minimal editor configuration ('teeny')
I want to add the table controls for wp_editor(tinymce) initiated with teeny=>true. Here is what I have done so far (without success):
<?php
$tinymce_options = array('plugins' => "table", '...
0
votes
1
answer
181
views
Access post title from custom meta box on title change
I have a custom meta box as part of my post editor. When the user changes the post title, I want to reflect this change in the content inside the meta box. I have seen plugins like Yoast do this but ...
0
votes
0
answers
17
views
editor option not available in dashboard
The editor option not showing up in the dashboard. I tried to set to false the statement
define('DISALLOW_FILE_EDIT', true);
But there is not any statement like this in wp-config file. What to do?
0
votes
0
answers
2k
views
Error in backend: Failed to load plugin: tabfocus from url
I'm getting an error that looks really wierd (notice the red error, running all the way down from top to bottom, over the left sidebar):
The error is:
Failed to load plugin: wordPress from url ...
0
votes
1
answer
33
views
Where do I go to edit this area? [closed]
I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the ...
0
votes
1
answer
222
views
How to perform action when plugin/theme editor is used?
I'm attempting to log lots of WP activities to create an audit trail. I'd like to disable the plugin and theme editors entirely, but it is not an option. Those functions appear to be very light on ...
3
votes
2
answers
3k
views
Add Shortcode inline inside Gutenberg block
In the legacy (classic editor) it was possible to add buttons to the editor toolbar via tinymce API, that will add shortcode at cursor.
seems like this is not supported anymore from the tinymce FQA ...
0
votes
1
answer
155
views
Query post with content only
I need to loop through the last 3 posts movie, but only those which have a content not empty.
I used to do as follow when I used the ACF editor instead of the native one.
movie-content refers to ...
0
votes
1
answer
873
views
How can a TinyMCE modal return formatted/visual text?
I am trying to customize the behavior of an editor button in a plugin. On click, it opens a modal where the user can input some text. On confirmation, I want to wrap this text into code tags. But I ...
1
vote
0
answers
471
views
How to prevent the editor from redirecting to website within iframe?
I have been trying to embed a website into a private page, and have tried out the "embed" and "iframe" tags, but as soon as I update the changes it redirects to the embedded site. I read more about ...
0
votes
0
answers
115
views
Gutenberg work with Bootstrap Shortcodes plugin
We are using now classic editor with the Bootstrap Shortcodes plugin. So after moving to WordPress 5, how this Bootstrap Shortcodes plugin work with Gutenberg editor.
After upgrade to WordPress 5 ...
0
votes
1
answer
524
views
Classic Editor text font color is white after installing the latest version of wordpress
I've updated the latest WordPress to the latest version and installed the classic editor for the editor. But when switch to the text mode font shows in white color.
3
votes
2
answers
4k
views
Gutenberg block editor - list of form components for custom blocks
I'm trying to learn how to create blocks for the block editor. I can't seem to find a list of form elements to add. For example, I need a toggle switch, dropdown, etc.
I found THIS toggle, but I'm ...
1
vote
0
answers
370
views
Gutenberg Block with Select from JSON-File
I would like to create a block for Gutenberg. I currently have a default configuration:
function my_block_category($categories, $post)
{
return array_merge(
$categories,
array(
...
0
votes
0
answers
27
views
Unable to find interface that lets me edit text on the front page
I'm trying to edit the text under the "Welcome" and the "A Little About Us" columns of the following website:
http://prnphysicaltherapy.com/
However, under the "pages" button in the dashboard I'm ...
0
votes
0
answers
50
views
Blank Screen Edit Page when using Editor Role
When I’m using other user roles to either edit page,add new page or event post I’m getting a blank screen.
I thought it’s the W3 Total Cache doing this yet after I uninstalled it the problem still ...
2
votes
3
answers
4k
views
Wordpress post editor crashes with Polyfill typo
When trying to edit a wordpress post (page) the editor loads indefinitely, console shows JS error with post.php / polyfill, see code below. To me it seems to be a typo and I have no idea where the ...
1
vote
2
answers
66
views
Adding content in Gutenberg editor
I updated my site to the latest version of Wordpress. I started using the new editor but have a question.
Is there a way to add a block of content that holds all the header tags and paragraph tags? ...
0
votes
0
answers
944
views
WordPress theme editor not showing
Why can I no longer see the Appearance > Editor function on the left hand menu in WordPress? It won't show up regardless of the theme. It used to be there before though correct? I wanted to add some ...
31
votes
2
answers
33k
views
Enable Gutenberg on custom post type
I have this custom post type:
function create_posttype() {
register_post_type( 'companies',
array(
'labels' => array(
'name' => __( 'شرکتهای عضو' ),
'singular_name' =...
0
votes
0
answers
114
views
Displaying Most Recently Edited Post
Is there a way of setting up my Wordpress blog so that the most recently edited blog post appears at the top of my homepage and any page to which it is linked?
0
votes
1
answer
110
views
Wordpress Gutenberg home page "edit Page" option missing
I try to understand customising of default theme, in my case twenty nineteen. After I create a new page on the top horizontal bar there is an option "Edit Page" visible. Why that option is missing on ...
1
vote
0
answers
669
views
How to display full width block without toolbar?
I'm trying to create a full width blocks for the new Gutenberg editor, however I don't want to give to option to toggle the block alignment (eg: like the Cover block does) just make it full width all ...
0
votes
1
answer
2k
views
WP 5 how to add_editor_style for both tinyMCE and Gutenberg
Before Gutenberg blocks we used to add editor styles by using
add_editor_style( array( 'path/to/editor-style.css', 'whatever.css' ) );
Now we have Gutenberg editor whose stylesheet is also loaded by ...
4
votes
0
answers
425
views
How to add button to post page WordPress 5.x
How can I add a button to a posts page? what hook can be used to add a custom button
I'd like to place it next to, or near, the "Publish/update" button, or modify the publish button for triggering ...
1
vote
0
answers
652
views
Why is WPBakery Page Builder backend editor not clickable? [closed]
The backend editor button is not clickable.
I've tried to change all files/folders attributes to 777 for this plugin.
I've checked and increased some php parameters (phpinfo for my site - https://...
-1
votes
1
answer
47
views
How i can customize WordPress front page in WP dashboard editor?
Although there are many questions related to front end editing, still none of them provided me some way to deal up with customizing WordPress front page using WordPress dashboard editor.
I'll be glad ...
1
vote
1
answer
1k
views
wordpress editor role remove all but 'menus' in appearance menu
I'm trying to remove access to everything in the appearance menu in WP admin for the role editor. Or at the least, just remove access to themes and plugins. I have found how to remove the whole ...
0
votes
2
answers
360
views
How to hide a field of the editor by default
I am working on a blog with a pretty high number of authors. I want to keep them from accidentally sending a push message to our readers, since the button of the push-plugin we use looks dangerously ...
2
votes
1
answer
553
views
Define multiple Gutenberg editor widths
I'm trying to define multiple widths for the Gutenberg editor depending on the post/page template. I have a full-width page template and would like the editing experience to be as close to the live ...
0
votes
2
answers
74
views
Front End Editor
I have a pretty weird issue with my text editor. First, my website is under development (in local) and is made with the Shapely free theme. Secondly, my website is for job hiring purpose (using the WP ...
1
vote
2
answers
3k
views
Getting a 404 error when clicking edit page
The problem I've run into is the WordPress for my website yesterday randomly stopped allowing us to edit any of the pages. Every time you click to edit a page it comes up with a 404 error.
Things I ...
0
votes
1
answer
1k
views
Gutenberg consume wp-json data and reflect in frontend the content
I have a custom gutenberg block which is dynamically fetching custom post data via wp-json on edit. How do I persevere the data on save for the fronted?
here is my custom component (preview.js) which ...
10
votes
2
answers
14k
views
Gutenberg editor add a custom category as wrapper for custom blocks
As we know by the provided API from Gutenberg we can create a custom block as
const { registerBlockType } = wp.blocks;
registerBlockType( 'my-namespace/my-block', {
})
but how do I create a ...
0
votes
2
answers
147
views
Why can't publish posts with too much text?
I'm trying to publish a posts in my WordPress, but when cointain too much words save but doesn't save the content of description like example.
I need take the information inside a file and save it in ...
0
votes
1
answer
360
views
How to allow editors to only edit certain categories?
Is there a way (through code or plugin) that can make each editor responsible on editing certain categories of the site
0
votes
1
answer
5k
views
WooCommerce custom billing fields on email address
I want to add the custom billing fields that I added with the WooCommerce Checkout Field Editor plugin into the email that it's sent to the customer:
I added the custom num_int field:
And tried to ...
-1
votes
1
answer
67
views
Forbidden when I'm trying to edit one page
I have a page on my website with the slug let's say "blablabla".
Several days ago, I've made by mistake a folder on server with the same name "blablabla". After that, when I try to modify and save my ...
0
votes
1
answer
69
views
How do I edit disclaimer/contact information?
I inherited this wordpress website called RxStudyGuides to use as a study tool for pharmacy students. However, the owner and creator of the website still has there contact information on the website ...