How to add authors contact info to author metabox in post editor?
How to add authors contact info to author metabox in post editor?
How to add authors contact info to author metabox in post editor?
You are using too many static pages. Pages are hierarchical and wordpress doesn’t handle page that well. The same goes for Custom Post Type with hierarchical option set. The only solution here is to ask your host to increase your RAM size. That will solve the problem for now. But if you continue to add … Read more
Solved it for different edit pages for different roles. In my method resposible for rendering the field I have: if ( count( array_intersect( $allowed_editors, $user->roles ) ) < 1 ) $readonly = ‘readonly’; Which I later use to either set the input field as readonly or add/remove classes before rendering it. Still working for the … Read more
It’s with the trailing semicolon. Not without, maybe that’s the problem? edit: also the question is quite hard to understand. Do you add those s by hand or is the editor adding them even though you don’t want them or what?
I found out myself. I had to call media_upload_header(); in the Iframe and trigger the following javascript: var html=”stuff I want to return to editor”; var win = window.dialogArguments || opener || parent || top; win.send_to_editor(html); I have no Idea how, but this works.
Yes. Use capabilities! When registering a post type, take a look at the capability_type and capabilities. You can define a custom capability map for the standard edit_post, delete_post, etc. for your post type. The thing you remember is, if you customize the capabilities, YOU DON’T HAVE THESE CAPABILITIES EITHER! This means you’ll have to get … Read more
Edit is changing my custom’s post type parent id
Okay, I think to start you need to change line 470 of the file includes/admin/class-learndash-admin-binary-selector.php from: ‘post_status’ => array(‘publish’), to ‘post_status’ => array(‘any’), If this doesn’t work on its own, there may be other places you need to change this as well – do a global file search on ‘post_status’ and look for places where … Read more
I think (and assuming) you use (without code, it’s hard to know, how you proceed) add_meta_boxes() to do your job. Then your code is logically standing in custom functions. Your function to render the metabox, don’t get the $post global, if you didn’t define it, the function need to know from which post it must … Read more
I’m pretty sure there is an option (per user) to change the page’s layout to single column, and then moving the block around to match the order you require. This option can be found on top of the page, accessible from the tab Screen options. Note that, as this is on a per-user basis, you … Read more