Questions tagged [post-editor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

WordPress Editor Missing Padding and Background Color?

For some reason, my editor has no left and right padding and I have no idea of how to get it back. It seems it has also lost its white background. I'm using Twenty Twenty-Three and I'm not sure at ...
Alvaro's user avatar
  • 121
1 vote
0 answers
79 views

Using Glide.js in custom Gutenberg block

I'm in the process of building a custom slider Gutenberg block that incorporates the use of InnerBlocks. I've chosen to implement this slider using Glide.js. Below is a demo video showcasing the ...
abhi3315's user avatar
0 votes
1 answer
31 views

Removing Default Panels From Gutenberg Document Setting Panel (sidebar)

Here's a second question in my quest to understand the Gutenberg Document Settings Panel sidebar and customize it. (See my first question here.) I have the following jsx code working for the edit ...
Andrew's user avatar
  • 189
0 votes
1 answer
18 views

Is there a way to assign a default Category to a Post when the user creates a new Post?

So far the best I've been able to figure out is how to assign a category when the Save Draft button is pressed. That is not what users want. They want to a particular Category ticked when they first ...
jchwebdev's user avatar
  • 765
0 votes
0 answers
150 views

Gutenberg editor styles not applied

Version 6.2.2. I had make a 'row' in a post and i put it two image (horizontally and vertically centered), but it not work in live. In get the Inspector, and i see that html-comment with json-styles, ...
krabat1's user avatar
0 votes
1 answer
557 views

wordpress 6.2 is alignfull and lignwide removed?

i am using a custom block theme, and i have support for alignwide and full. now i test my theme on 6.2 and the buttons for wide and full are not showing. in my functions.php file i have this: ...
Ron's user avatar
  • 125
5 votes
1 answer
197 views

Disable "Quick edit" for roles in WP dashboard

How can you disable the "quick edit" link in posts in WP dashboard for roles with following conditions: The "Delete" ability shall stay the "View" post ability shall ...
vallespir's user avatar
0 votes
1 answer
274 views

Edit a page/post DB data?

Hello fellow Wordpress users. I purchased a theme, and it has some content blocks ready to use. I enjoy the simplicity of this, but I cannot fine-tune the details of these blocks. I eventually found ...
pkSML's user avatar
  • 101
0 votes
1 answer
863 views

Bullet points not showing in wordpress

Please I'm facing a problem with my blog, since the the bullet list points are not showing on my blogposts even though I always add them via the editor. This is a direct link to a paragraph with ...
arnodheros's user avatar
1 vote
1 answer
208 views

Use add_action to run a script, but only on the post editor page

My JS script runs on every page, but I want it to run only on the post editor page. function sm_validate_title() { echo " <script> console.log('script working') ...
MrFacundo's user avatar
0 votes
0 answers
29 views

How to retain last modification date on draft edit

I have a number of drafts on my site created by a third party tool. I now want to publish these drafts. When I do, I want to set the published date on these posts to the last modification date (i.e. ...
dtw's user avatar
  • 105
0 votes
1 answer
35 views

Filtered dropdown for author?

My site has a long list of authors. I understand the html is a select list. However, is there any way, javascript or other, to make this a filter-able list, i.e. with a search box at top of the ...
Leora Deans's user avatar
0 votes
0 answers
32 views

Confirmation message when submitting post for review

If a someone submit a post for review, I want to show a message, something like: Your post has been submitted successfully. Thank you. How can I achieve this?
Morshed Alam Sumon's user avatar
1 vote
0 answers
212 views

Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]

I spend a lot of time developing technical content that revolves around software and network engineering. I used to do some content creation and blogging on this topic as well as creating ...
ylluminate's user avatar
0 votes
1 answer
51 views

Prevent all users from editing posts except admins using hooks

So I'm attempting to block out all post edits for all users except admins, so I have the following setup: add_filter('post_row_actions', [self::class, 'remove_edit_permissions'], 10, 2); public ...
theMap's user avatar
  • 25
0 votes
1 answer
356 views

Change the destination of the URLs in post.php

The post.php screen lists posts vertically in the admin area [and other post types]. Each item's post_title is a hyperlink, directly above some inline choices. Both the title link, and the "Edit&...
John Dee's user avatar
  • 503
0 votes
1 answer
58 views

Live reload preview just reloads forever

There is a new preview feature on WordPress that looks like this: When it's clicked, it reloads the preview over and over and over again. Why would this happen? I tried disabling different plugins ...
kawnah's user avatar
  • 123
0 votes
0 answers
99 views

How to add text before post_excerpt in Gutenberg

I'm trying to edit my plugin to work on the updated version of the website. I have a custom plugin, which worked with plugin Post in Page but not working with the integrated function of Gutenberg - ...
ShippeR's user avatar
0 votes
0 answers
101 views

how to move a plugin-block in Edit Post page back to bottom area?

This is about a block in the right area in the Edit Post page of of a wordpress post. It could be any plugin, but in this case it is about the Analytify - Stats of this Post/Page to demonstrate and ...
florian.isopp's user avatar
0 votes
1 answer
546 views

Custom page for editing custom post type on frontend based on url

I have created a custom post type nammed job. The users will have the posibility to create/read/update/delete their posts from frontend. I created a shortcode with a form for post creating, which is ...
Caslaru Ion's user avatar
0 votes
1 answer
45 views

How to mass get post editor URLs

The company I work for has 300+ products on their website. I was able to grab all the published product post URLs on the site, because the permalink shared a common format: https://domain.com/product/[...
Aurora A's user avatar
  • 183
0 votes
1 answer
80 views

charset problem in wordpress because of nginx config

I transferred a WordPress website to my server, the previous webserver was apache, the new web server is Nginx, but I made a mistake and got the Nginx config file from my old resources so this phrase &...
MohsenP's user avatar
  • 11
0 votes
1 answer
279 views

How to Batch Convert Gutenberg post to Classic post?

I create hundreds of posts with Gutenberg block editor. Now I want to convert all of them to classic posts. How to do so? Update The reason of doing so: The Gutenberg block will introduce a large ...
alancc's user avatar
  • 41
0 votes
0 answers
127 views

How can I add a stylesheet to the Classic Editor page?

I want to make some style changes to the Classic Editor page itself -- not the place where you write the text of the post, but the main part of the page (such as the Categories block -- maybe I want ...
Jim Miller's user avatar
0 votes
0 answers
14 views

Select another post in a post meta like a parent page is selected while editing a page

I have a series of 'post's like 'Title 01', 'Title 02', 'Title 03', ... and so on. When editing a 'post', I want to add a previous and a next post (of the series) ids as the post meta. I have added ...
sariDon's user avatar
  • 255
1 vote
0 answers
184 views

Add the description field on the attached media

Well, we want to add the description field on the attached media under the post edit page. I have attached an image for reference. Explanation: Under posts, after adding an attachment if we click on ...
Rajneesh Tiwari's user avatar
0 votes
0 answers
356 views

Making custom meta box required (with error message if not filled in) on Gutenberg

<input required name="myName" type="text" value="<?php echo $myValue; ?>" class="regular-text"> Does not produce an error message if the field is ...
Drewdavid's user avatar
  • 189
0 votes
0 answers
274 views

HTML for adding a meta box (basic text field) to page editor?

I am following this tutorial from to add a meta box to pages of a certain page template. Unfortunately the code omits the part on how to create the actual meta box on the page (the HTML). The code in ...
Drewdavid's user avatar
  • 189
0 votes
0 answers
770 views

Wordpress Rest Api rest_cannot_edit

Hello I want to edit the post by rest api. i login succesfully with admin access but still i get when logging in i get response {'success': True, 'redirectTo': 'https://cannedsplam.com/wp-admin/'} ...
gulbaz khan's user avatar
1 vote
1 answer
43 views

editor-style.css Functionality

Scenario: I have a client who has difficulty understanding that the font styling he sees in the WordPress dashboard for his posts is not necessarily the styling that will show on the front site. ...
Nora McDougall-Collins's user avatar
1 vote
1 answer
178 views

How to edit title on Edit post pages?

The <title> tag in pages for post edit is Edit Post < Site name — WordPress. I want to change it to Edit Post < Site name – The title of the post in editing. Is this possible? Where can I ...
Ooker's user avatar
  • 330
0 votes
1 answer
186 views

How do I trigger the sidebar reveal for my sidebar plugin in the Gutenberg editor?

So I have developed a sidebar for the Gutenberg editor in WordPress. The purpose of this sidebar is to provide feedback, grades, scores, etc., for a set of custom input boxes that appear below the ...
Nicholas Cardot's user avatar
1 vote
0 answers
22 views

Custom Fields box in the post editor: Replace textareas with input elements

I am developing a theme for a specicific use case which uses custom fields. To emphasize that the values are always single line, I would like to replace the textareas with input fields. What is a good ...
no_gravity's user avatar
0 votes
1 answer
102 views

After updating the custom post type, metafields disappear from the post.php edit menu, how do I fix it?

Internet does not have a solution for this specific condition. First I create a new post as below: $user_suan = wp_get_current_user(); $args = array( 'author' => $user_suan->ID, ...
KBA's user avatar
  • 1
0 votes
0 answers
114 views

Hide Some Categories in Post Editor

I run a multi author blog. I want authors not to be able to publish posts under some categories(Suppose ‘selected’, ‘editorial’). So I want to hide them in post editor. I tried this code: add_filter('...
Morshed Alam Sumon's user avatar
1 vote
0 answers
1k views

YouTube Video autoplay

I am using a YouTube embed on my site. To make it autoplay I have added ?autoplay=1 to the embed too. The code when added to the page/post editor, is showing the video with autoplay. But on the front ...
Jituu's user avatar
  • 31
1 vote
0 answers
475 views

Classic editor throws 403 error based on post content

In an updated and unadorned WordPress installation, with only the Classic Editor plugin enabled, and the 2017 theme, I get a weird error. When I try to save a draft of a post containing this <...
O. Jones's user avatar
  • 471
0 votes
1 answer
55 views

If I disable screen options, does WP still try to update post meta?

I am trying to speed up my WP admin post edit page. (/wp-admin/post.php?post=x&action=edit) This particular site has WooCommerce + other plugins that generate a lot of post meta installed. Most ...
Joe G's user avatar
  • 3
0 votes
0 answers
35 views

Bold button gets unchecked on enter click when bullet button is also selected in WP Editor

I am using wp_edior. Here is the scenario : Click bold, italic, bullets and write 1 line. Now press enter Bold and italic buttons gets unchecked. I tried below solution but it did not work for me. ...
Shweta Danej's user avatar
0 votes
1 answer
816 views

< ! - - more - - > tag not working

I was playing around with the more tag . If I insert the more tag from the editor it seems to be working fine in my blog feed page like shown below : But if I manually type in < ! - - more - - > ...
Knownow's user avatar
  • 121
0 votes
0 answers
58 views

Wrap post images with a link, not figure (image_send_to_editor doesn't work)

The new version of WP wraps all images put into a post with a figure element, instead of a href. I tried to use this hook in my functions.php if( is_admin() ) { add_filter( 'image_send_to_editor', '...
AthScc's user avatar
  • 1
0 votes
0 answers
240 views

Block editor: content resets to the previous state in "Edit as HTML" by clicking somewhere outside of the editing window

When I'm adding my custom block and then trying to edit it in "Edit as HTML" mode, any changes reset to the previous state every time when I click outside the editing window. Let say default HTML in ...
Eugene Lavrinenkov's user avatar
0 votes
1 answer
97 views

link to edit a post has empty target

I open the admin dashboard and navigate to "Posts" I see the normal list of my posts On some post I can click and the editor opens (everything is normal) BUT: On some post the link, which should be ...
Stefan's user avatar
  • 1
0 votes
0 answers
30 views

Images are not shown in the post editor

I created my posts with lots of images jut fine. If I open the editor after a while the images are not shown anymore. It's just showing a placeholder with the image title. If I open the image gallery ...
BetaRide's user avatar
  • 101
9 votes
1 answer
1k views

How to make a script load after Custom Block is loaded in the editor?

I'm trying to make a Custom Gutenberg Block, but I'm having trouble with loading javascript that goes with this block. On the front-end it works fine, but in the editor it seems that the script ...
J. Stockland's user avatar
1 vote
1 answer
2k views

Is it possible to "comment out" text in a post?

In programming, there is usually a way to "comment out" lines of text. Text that has been commented out does not compile and in no way affects the software. It's used for several different purposes, ...
John Doe's user avatar
  • 113
0 votes
1 answer
341 views

How to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins?

Want to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins. How to do it?
Riya's user avatar
  • 3
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 ...
Hector's user avatar
  • 671
2 votes
4 answers
2k views

Why is the new Gutenberg editor so narrow, and how to make it wider?

I'm beginning to like Gutenberg, but I find it too narrow, particularly when working with the 'Columns' block. Why is it so narrow, and can it safely be made wider? I could try doing so with CSS, but ...
Theo d'Or's user avatar
  • 168
0 votes
3 answers
2k views

How to adjust text’s width and put it at center of post (Visual) editor?

[Disclaimer: I'm not a developer of any sort, but willing to take the time. (Can do a bit of CSS, though.) Also, new to this forum.] I’m using Anders Norén’s Hemingway theme. I haven’t tried ...
myniuat's user avatar

1
2 3 4 5