Articles of wp admin

Custom post meta box as a sub form

I have a custom post type with meta boxes existing already. I’m in need of a feature which would be called a sub-form in the MS Access word. It’s section 2 in the below image: I have one row of post meta fields already, and I need a way to allow the user to add […]

Default and warning messages & no login

a few days ago I found these default messages on my website. Problem: I even can´t login to dashboard anymore. Some advice? This is what happened: Warning: Declaration of Pgm_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /homepages/44/d407393083/htdocs/clickandbuilds/MonikaWiese/wp-content/plugins/page-menu/pagemenu.php on line 380 Warning: session_start(): […]

Admin Login Checks

Where does WordPress perform the check as to whether or not a user is logged in when aaccessing admin? i.e. When I access /wp-admin/edit.php, if I am not logged in I am redirected to the login page – where (which file) is that process taking place?

I am trying to upload an image, but it keeps uploading like a PDF

I am trying to upload an image .PNG and I have also tried .JPG. Put when I upload it, it doesn’t show me the picture, it shows me a piece a paper with the fold corner, like it uploaded as a .PDF or something. Please see the image attached. Thank you!

Ajax live Search not working in WordPress dashboard Editor

I am trying to load post name using Ajax Live search in new post editor using a metabox. The code I am trying works good when used on front end but it is not working in back end. Ajax Code: <script> $(document).ready(function(){ var searchRequest = null; var minlength = 3; $(“.search-field”).on(‘input’,function(e){ e.preventDefault(); var st=$(“.search-field”).val(); $(“.product-search”).empty(); […]

Displaying page hierarchy in Admin menu custom page

I had this working procedurally, but I would really like to keep things DRY and use OOP to build this. The Method I am struggling with is the create_admin_page() function. The Rundown I am setting up custom menu items and admin pages that are displaying the child/grandchild pages associated with them. For instance, I have […]

Add and re-order images in wordpress admin for custom image gallery

A custom theme that I am developing contains an image gallery. For this image gallery the admin user needs to be able to add and reorder images for the page containing the gallery. The admin user should be able to reorder the images through a drag and drop interface and of course the images should […]

Custom WP_List_Table into API subtab

Please I’m trying to create a customized list table using this tutorial but when I go to API tab then the subtab plugin name I only have a blank page. Any idea?

Search columns by date or author name

I am using this code to the extend the search in the custom post types to include custom meta fields. function enhanced_search_join ( $join ) { global $pagenow, $wpdb; if ( is_admin() && ‘edit.php’ === $pagenow && ‘custom_post_type’ === $_GET[‘post_type’] && ! empty( $_GET[‘s’] ) ) { $join .= ‘LEFT JOIN ‘ . $wpdb->postmeta . […]

Users Role : Force user to create new one with it's role only

I have 3 roles on my platform Administrator Editor ++ Editor The new role is Editor ++ i created with duplicate Editor role and add somes capability to him. The problem is if i’m login as editor I can create editor ++. How can I force editor to have the capability to create only editor? […]