Questions tagged [post-editor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
34 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 ...
-1
votes
0answers
19 views

Suddenly Editor's posts do not show in home page but administrators´ do show

Suddenly, my editors posts stopped showing on the home page, but my posts as administrator can be seen (mine). To confirm, if I go to appearance/reading and click on "latest blogs" and ...
0
votes
1answer
11 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/[...
0
votes
1answer
18 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 &...
0
votes
1answer
62 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
22 views

How to return to the post after creating/editing it?

I'd like to have my site set up so that, after a user creates or updates a post, they are returned to the non-editing view of that post. I can't quite figure out how to do this; I'd assume that ...
0
votes
0answers
13 views

Why could I not change the icon of the default Add media button that I added into the toolbar of TinyMCE?

I used this guide to change the default Add media icon in WP: How to replace default icon on "Add Media" button? But, I had also added an Add media button into the toolbar using this ...
0
votes
0answers
10 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 ...
1
vote
0answers
47 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 ...
0
votes
0answers
41 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 ...
0
votes
0answers
43 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 ...
0
votes
0answers
10 views

Architectural decisions of page builders: why does everything need to happen on the post page?

I understand the question relates to page builders, which are 3rd party plugins, but the reason for why they all make this specific architecture choice is weird and has deep implications. I've been ...
0
votes
0answers
113 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/'} ...
0
votes
0answers
8 views

display failed status on post edit

I created a meta box in the post edit interface that modifies a portion of a post on update (publish/pending/update/etc.) It's working great. I have tried a number of things to invoke a failed status ...
1
vote
1answer
15 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. ...
1
vote
1answer
54 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 ...
0
votes
1answer
87 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 ...
1
vote
0answers
16 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 ...
0
votes
1answer
24 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, ...
0
votes
0answers
24 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('...
1
vote
0answers
956 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 ...
1
vote
0answers
202 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 <...
0
votes
1answer
31 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 ...
0
votes
0answers
19 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. ...
0
votes
1answer
178 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 - - > ...
0
votes
0answers
34 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', '...
0
votes
0answers
103 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
16 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 ...
4
votes
0answers
748 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 ...
1
vote
1answer
765 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, ...
0
votes
1answer
194 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?
0
votes
2answers
1k 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 ...
2
votes
3answers
1k 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 ...
0
votes
3answers
1k 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 ...
0
votes
0answers
68 views

Taxonomy checkboxes not showing current status on edit page

Super strange thing happening on post pages, the Categories dropdown and checkboxes when clicked show no change, however after clicking save, or waiting for autosave the checkbox changes it's ...
0
votes
1answer
130 views

find out reason of "Updating failed" in Post-editor

In some cases, if there is issue in code or whatever, and try to update the post in Gutenberg post-editor, you will get "Updating failed" error message: Is there any way to debug/find out the reason (...
1
vote
2answers
47 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
1answer
130 views

How can I (for the long term) style the classic editor's TEXTAREA?

I would like to apply minor styles main TEXTAREA forthe classic editor, for editing source directly. When I inspected the source, the top source listed was load_style.php and editor.min.css. I was ...
1
vote
2answers
1k views

How do I disable wpautop for a specific block?

I've registered a custom editor block with Advanced Custom Fields (ACF), and am using render_template with a PHP template partial to display the block contents. Inside the template is some HTML (...
4
votes
0answers
273 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
1answer
280 views

Show Author information on post page on dashboard

When an admin clicks on a post in the WordPress dashboard, is it possible to display the author of the post's details, like meta content? ie. name, phone, email?
0
votes
2answers
910 views

How to after saving or publishing a post redirect back to the original page

When viewing a list of posts on the admin page wp-admin/edit.php I click on edit. I then finish editing the post, click on save or publish and expect to be returned to the original admin listing page ...
0
votes
1answer
120 views

How to create "custom page types" with different custom fields in them?

I have lots of pages that perform very different purposes in my website (landing pages, thank you pages, regular website pages, webinar pages, etc). As such, I would like to group my pages into ...
0
votes
2answers
30 views

Admin sidebar overlapping on editor when saving draft

I am having this weird problem. Everytime I save a draft, the sidebar's black area appears and overlaps the editor making the editor unusable. It also attempts to save the draft repetitively and the ...
2
votes
1answer
95 views

How can I make the Uploaded field editable for Media Library?

The 'uploaded' date field for Media Library entries is read only. Is there a way to make it editable from the Attachment Details window in upload.php? I've tried the following code as a plug-in. It ...
1
vote
2answers
86 views

Make substitute in all Wordpress posts

I wish to replace one string in all my WP posts (over one hundred). There is a "bulk edit" feature, but I do not think it covers this feature. I can think of downloading the database, open it with ...
0
votes
1answer
53 views

Force category choice before creating new post

I see this post https://wordpress.stackexchange.com/a/14405/144156 Code it working, but i want change category = my custom taxonomy "chuyen-muc", someone help me, thanks.
0
votes
2answers
29 views

How to disable edit link button bottom of the page for all users except Administrator

So I have a website www.chatexplore.com All of my new users are Editors who can upload images and post. But I dont want edit button at the bottom of the page to be visible to any users except ...