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

Questions tagged [post-editor]

The tag has no usage guidance.

0
votes
1answer
19 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
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? ...
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
2answers
263 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 (...
1
vote
0answers
46 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
99 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
1answer
22 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
23 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
23 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 ...
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( '...
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 ...
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 ...
1
vote
2answers
49 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
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
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
2answers
19 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 ...
3
votes
1answer
414 views

Add search to list of categories in post editor

I have many categories in my WordPress website. Each time I am adding new post it is very hard to find specific category that I need this time. It would be much easier if I had search field right ...
1
vote
1answer
590 views

onClick inside post_content does not appear in post tinymce editor

I'm doing a migration. I made a PHP script to generate posts in the new WordPress database. The post content contains an HTML link containing href="javascript:" and onClick="trackOutboundLink('url')"....
0
votes
1answer
31 views

How can I remove the editor from the 'main posts page'?

I'm trying (and failing - despite the numerous previous posts by others) to more easily/reliably remove the content editor from this page. I can remove it using the page-ID: add_action( 'admin_head',...
0
votes
1answer
108 views

Get admin area editor in frontend

I'm new to WordPress development, so apologies if this is a simple matter. I have created several custom post types and I want to let users add/edit content from the front end. I thought it's easy. ...
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 '...
0
votes
1answer
52 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 ...
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 ...
0
votes
2answers
1k views

disable <script> tags on wordpress text editor

I am trying to prevent from Cross Site Scripting vulnerabilities. For that I have to make sure that it is not possible to insert JavaScript code directly via the editing functionality on Text editor. ...
0
votes
1answer
164 views

How to replace default icon on “Add Media” button?

I want to use a different icon for Add Media button in the standard post editing form. What's the best way of doing it?
2
votes
1answer
575 views

can't see all pages in dashboard (can only see 3) /wp-admin/edit.php > 500 error

A client's website has 12 pages, but we can both only see 3 of them, even though we have administrator accounts, and creating a new administrator account does not solve the problem. Screen Options ...
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
1answer
37 views

how can i add extra parameter to edit post link?

i'm just reseach wordpress for few days. But i don't know what keyword to reseach this problem: I have 2 post module called hotel and room . In hotel page when i edit , it have a button to redirect ...
0
votes
1answer
239 views

Dynamically set taxonomy term and show admin notice on post save

I have a taxonomy of "date" listing all months of the year. And I have a custom field of "start_date". I would like to update the 'date' taxonomy dynamically so the user doesnt need to click both when ...
0
votes
1answer
22 views

Post editor doesn't save embed media [closed]

I'm facing weird problem - I'm trying to save embed media to post in different computers and it doesn't work in all of them. We do the same process (insert -> media -> embed -> youtube code), and in ...
0
votes
1answer
42 views

Mass removing CSS from 1,700 post [closed]

I just migrated from blogger to wordpress and I have over 1,700 post with this line of css in them .alignleft { float: left; } .alignright { float: right; } Along with some meta which shows up ...
1
vote
1answer
89 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 ...
0
votes
1answer
410 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
2answers
33 views

Custom Columns for Custom Post Type Manager

Failing miserably at adding a custom column add_action('manage_edit-pricing_columns', 'manage_pricing_columns'); add_action('manage_pricing_posts_custom_column', 'manage_pricing_custom_columns'); ...
-1
votes
1answer
114 views

Woocommerce Force the category choice before creating new product? [duplicate]

How can I force the user to first choose a category product before continuing to the editor when creating a new product? I found a successful solution but it is working for posts not products. Force ...
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
2answers
426 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
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 ...
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 ...
2
votes
1answer
689 views

How to wrap the content of the main tinyMCE editor with extra tags

I'm on WP 4.6, which has tinyMCE 4. I need to make the contents of my post editor visual tab more WYSIWYG. I'm attaching a CSS file containing my front end styles to the editor using add_editor_style. ...
1
vote
1answer
77 views

Are there individual memory allocations for different user roles in WordPress?

I am attempting to edit a specific page via the WordPress admin area while logged in as an Editor, however, the page dies with the following error: Fatal error: Allowed memory size of 134217728 ...
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 ...
4
votes
2answers
652 views

How can I hook into the post editor title field in order to change the HTML?

I want to make post titles mandatory in the post editor without Javascript or PHP validation, I'd like something really simple like adding the HTML "required" attribute to the post title input element....
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 ...
0
votes
1answer
57 views

How do I increase the upload size only when editing special pages?

I have the following code to increase the upload size only when editing certain, special pages: function my_edit_page_form( $post ) { if( my_is_special_page( $post ) ) { add_filter( '...
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 ...
0
votes
1answer
26 views

Do one have to wait after pressing “update” on a post edit page?

Do one have to wait after pressing "update" on a post edit page (becuase if he won't the post update process will be ruin) or does it make no difference what happens after one clicked the button?
5
votes
1answer
93 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
4k 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 ...
16
votes
2answers
985 views

Remove inline linking tool

I'm not a big fan of the inline linking tool published with WP 4.5. Is there a way to disable it?