Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [post-editor]

The tag has no usage guidance.

2
votes
2answers
334 views

Editing a Post, 99% CPU?

I have a blog with ~15k posts, and a DB size of 14.4M. The website works blazingly fast from the front end, but post-edit and post-listing screens hang - either loading partially or not at all. Even ...
1
vote
2answers
30 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? ...
1
vote
2answers
241 views

Custom fields attached to a page template only show on edit screen when page is saved

When I create a custom field and associate it to a custom page template, it doesn't show in the post editor screen until I click save (draft / publish). Ideally, the custom field should show when I ...
0
votes
2answers
424 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
2answers
575 views

&nbsp when I use ENTER for skipping line

I don't know why when I'm using "Enter", that add &nbsp; in Pages/Posts Editor. That doesn't matter, but on my website, when I look the code &nbsp; makes this code : <p> � </p> ...
3
votes
1answer
44 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 ...
3
votes
1answer
86 views

Publish post when edit post form submitted with enter/return pressed on keyboard

How do you publish posts when the post edit form is submitted with the enter/return key on the keyboard? By default WordPress saves the post in draft status. To provide some background, I have an ...
1
vote
1answer
95 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?
1
vote
1answer
88 views

Popup or admin/update notice on post/page edit screen without page refresh

Wordpress has similar functionality when another user is "taking over" editing a post WP gives you an instant warning. I want to be able to either trigger a popup or show a new admin notice on top of ...
1
vote
1answer
74 views

Add default page editor to an admin settings page

Is there a way to get the standard page editor into a custom administration settings page? I have been able to add other textarea boxes with toolbars, like TinyMCE/CKEditor but not replicate the exact ...
0
votes
1answer
20 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 ...
0
votes
1answer
21 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
28 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
1answer
51 views

Post/Page editor loads twice

WordPress 4.9.2 On the backend, the Page/Post editor seems to be loading twice. First it displays the Text version of the page/post. Then just when you think it finished, it reloads again with the ...
0
votes
1answer
408 views

Conditions for admin get_current_screen action parent_file edit.php?post_type=page

I have a plugin that requires scripts to load for an admin panel in the page-attributes template drop-down on page post type. However this script causes a Uncaught TypeError: on post post types ...
0
votes
1answer
143 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
1answer
50 views

Using get_the_excerpt in edit-post

I'm trying to use get_the_excerpt in edit-post to show show what a post will look like on the front-end, but it doesn't work. All other get_the_xxxx functions for the post works fine. I can show the ...
0
votes
1answer
75 views

Modify loop to include all post statuses not just 'published'

I have third party authors and they cannot publish posts - they have to submit them for review and I then review & publish them. The posts are tied together & associated with each other, in a ...
0
votes
1answer
363 views

How to remove UI access to Custom Post Type using direct links?

My goal: A custom post type with a complete custom editor page and post list table. I have set show_ui to false. It removed the UI section. But if some admin puts direct link (wp-admin/edit.php?...
0
votes
1answer
22 views

creating different edit screens for different roles

I have created a custom post type and custom role, created the proper capabilities and assigned them so the new role and see and edit their own ctp's entries... but I'd like to create a customized ...
0
votes
1answer
557 views

Fatal error when accessing Pages in WP admin (and problems editing any pages)

I have a site that's been going for about 4 years with several hundred pages. I've had strange problems when accessing the Pages section (to choose a page for editing) and while in Page editing. These ...
0
votes
1answer
106 views

In the Edit Post page how do I modify with jQuery the status select list?

Here is my JS: jQuery('#post_status option[value="draft"]').text('Approve'); I simply trying to modify the text inside the option element in the status select form element in the Edit Post page. ...
0
votes
1answer
61 views

Create another TAG widget for posts

Currently, Posts have "tags" and in the post edit page you can add and remove tags using the widget. I would like to add another such tag-system (say, keywords) and I would like for it to use the tag ...
0
votes
1answer
356 views

How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?

How to change the default orderby from "Date" to e.g. "Title" or my custom column in content type records list in admin? Right now the created or cahnged is always the first. But I want to order the ...
0
votes
1answer
88 views

dynamically get post attachment while editing

I want to show a meta box on the post edit screen, that contains a list of the images attached to the post. I need the meta box to work for new posts as they are being created. It should update ...
1
vote
0answers
45 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
0answers
25 views

How to allow users to post only in certain category and hide elements from edit page?

I need your help, I am really desperate. In the beginning whenever a user is registered I create category with name based on that user's team name. That user also gets a unique custom role '...
1
vote
0answers
21 views

Media added with shortcodes not “linked” with post

When you add Mediafiles (images, galleries, videos etc.) with the "Add Media Screen" in "Post Edit Screen" then the Attachment will get linked(parent_id) to the post/page. I don't know if this is ...
1
vote
0answers
49 views

How can I define a max width for content in post editor based on a page template?

On the front end of my theme, a standard post/page is max-width: 693px. But I have a full-width page template that when chosen adds a class to make the max-width: 1072px. My question is, in the ...
1
vote
0answers
80 views

wp_update_post() blank screen

i am developing in functions.php a function which, when a post in a certain category is created/edited, will create also a related page or update it if already exists. The creation of a new page with ...
1
vote
0answers
90 views

Added custom styles to Visual Editor. Classes are appended and not replaced as intended

Followed several tutorials and have added custom classes in the formats section of the visual editor. The classes used are being appended and not replaced as I had intended. Is there a way to have ...
1
vote
0answers
213 views

Edit page blank, control buttons missing

Lately I encountered a strange problem while editing posts and pages. I have a blank page with all controls missing (like publish etc.). I tried to deactivate all plugins. I tried to upgrade ...
1
vote
0answers
147 views

Change syntax styling of TinyMCE HTML Text Editor

So I have customized the CSS display for the TinyMCE 'Visual Editor' by using this here: /* Add Theme CSS to WP Content Editor -------------------------------------------------- */ function ...
1
vote
0answers
156 views

Embedded tweets get wrapped in <p> tags and fail to load

So WordPress should embed tweets in posts just by pasting the tweet url, like so https://twitter.com/cnnbrk/status/496020289277689858 This works great, if you manage to avoid having the url wrapped ...
1
vote
0answers
137 views

edit.php alter links

I want to alter the view of edit.php in the posts admin area. What I want is when a category is set ( $_GET['cat'], cat=x in the url ), add post would be post-new.php?cat=x. Is this possible? I know ...
1
vote
0answers
848 views

Editing does not change post_name

Suppose I wrote an article, "My Article Title", it has been saved into the database with $post_name=my-article-title , and the permalink is mysite.com/my-article-title. All good. Now, if I didn't ...
1
vote
0answers
574 views

Word count not accurate - potential bug

My editors reported that there appears to be an issue with my word count on the post edit page. Testing this proved true, check the word count: This is affecting all posts, for instance, a post with ...
0
votes
0answers
48 views

Can't remove a role's “edit_others_posts” capability for a custom post type

I am having trouble trying to remove a capability for a role on a custom post type. I have a CPT defined as function register_cpt() { $labels = array( 'name' => _x( '...
0
votes
0answers
12 views

Is there a way to add an input field to edit link_updated on the Edit a Link page?

When I go here: http://example.com/wp-admin/link.php?action=edit&link_id=24 I want to be able to edit the link_updated field. But it's not here. How do I hook into that php file to add the ...
0
votes
0answers
33 views

Adding Editing (backend) metaboxes for a given post type to the frontend

Apologies that this question isn't coming with a pre-existing code attempt by yours truly; this need is a bit above my current skill level (but I'm working very hard to improve at it). I'd like to ...
0
votes
0answers
93 views

Restrict user to terms in a custom taxonomy registered for both posts and users

I have a custom taxonomy 'siteSections' that is registered for both posts and users. The idea was to limit certain sections of posts/pages to specific users, by assigning terms to pages and assigning ...
0
votes
0answers
35 views

Edit is changing my custom's post type parent id

I'm having a custom post type (vehicle) and i attached a gallery (post) with image attachments in it. Through my custom frontend form, I set all the post and postmeta details right, as i want to, so ...
0
votes
0answers
262 views

How to add authors contact info to author metabox in post editor?

By default the Author Metabox on the post editor displays only a drop down to set the author of that respective post/page. I'd like the author's contact info (email address) displayed on the Author ...
0
votes
0answers
60 views

Use Custom Field As Meta Box In Post

I recently asked on this forum how to create a beta box using custom field, which was answered but with a not so right answer, but it helped me. For example, there's a custom field that I use called -...
0
votes
0answers
319 views

How to block action if post is “dirty”?

For a plugin I'm working, I've added a button that needs to be either disabled or show a warning if the current editing post is dirty, that is, if anything has been modified and not saved. Looking at ...
0
votes
0answers
270 views

Empty paragraphs around figure and figcaption tags when using markdown

I'm using WP 3.8 and Markdown on Save Improved plugin and have following code for outputing HTML5 tags when inserting images via Media Uploader: function html5_insert_image($html, $id, $caption, $...
-1
votes
0answers
11 views

Post Edit - Options Fixed Arrangement

I would like to know if there's a plugin or codes that can make admins arrange the post edit page options. Sure that when an admin in logged in, he/she can arrange all the options on the post edit ...