Users with the ability to perform administrative tasks for a site or a network of sites.

learn more… | top users | synonyms (1)

0
votes
1answer
20 views

Exclude Everywhere but Admin Area?

Currently I have this: if ( ($query->is_home() && $query->is_main_query()) || $query->is_archive() || $query->is_search() ) { ... } I tried !$query->is_admin() but this didnt ...
3
votes
2answers
674 views

Filter by custom field in custom post type on admin page

I've used Advanced Custom Fields to create custom fields for Competition name, answers etc. I've made a custom post type for competitions as shown on the image and I used Wordpress functions.php to ...
1
vote
1answer
36 views

Wordpress Redirects on Install

I'm having problems when trying to install wordpress on subdomain. I've downloaded the arhive from wordpress.org, unzip it on root folder and when trying to install it says I found and tryed ...
0
votes
1answer
64 views

Admin toolbar not displaying on pages

The admin bar displays on the dashboard, but does not display on pages or posts. I'm working with a child theme of Twenty Thirteen that I did not code. I'm a beginning level coder and work mostly ...
0
votes
0answers
33 views

How to create child pages from given parent page

I have a website with lots of pages and subpages. Browsing the default pages table is ok, but not very practical for sub-page creation. I first tried the plugin Nested Pages, which works fine for ...
0
votes
0answers
37 views

Save custom post data outside of default post form

I have some text inputs in my post editing screen. I can't have them in the standard metaboxes and they are outside of the default post form. <form name="post" id="post" action="post.php"> I ...
0
votes
1answer
30 views

Get content of publish box

is there any way how to safely get content of the publish box? For example via some hook or filter? I wasn't able to find anything. I need to place in in some different place.
1
vote
0answers
33 views

Add custom button next to native “Apply” button in the edit-tag screen

I am aware that a button can be added next to the WordPress native "Filter" button using the restrict_manage_posts filter. An example is shown in the screen below. However.. Is there any way (...
0
votes
1answer
69 views

Remove Permalink From Admin Edit Post

Is there any way how to edit the title field in post.php? this field: I want to remove the permalink part but I wasn't able to find any hook or filter for it.
1
vote
1answer
44 views

How to remove “publish metabox” from each post type

Is there any way, how to remove "Publish metabox" from each post type (post,page,custom_post_type) anything. I know how to remove it manually, for each post type, but how to do it globally? ...
-3
votes
1answer
47 views

Woo Commerce Settings for Check-out Form [closed]

I am using Woo Commerce and am trying to change the settings that display the "Need Assistance? Call Customer service @ ....." and "Email then at ..." on the Checkout page: https://www....
0
votes
0answers
24 views

Admin list: sort by default by custom column

I created a custom column like this: if( (isset($_GET['post_type'])) AND ($_GET['post_type']=="sales") ) { function inventory_column($columns) { ...
1
vote
1answer
114 views

How to set CORS header?

I have been accessing media images in a Ruby on Rails application via ajax from wordpress 4.2.4. I am getting following error while accessing the image via ajax. XMLHttpRequest cannot load http://...
0
votes
0answers
76 views

How can I allow users to set term_order for custom taxonomy in admin?

I am able to sort a list of (custom) taxonomy terms on the front-end calling get_the_terms() with the help of the following filter function: /** * Sort custom taxonomy by term_order * * @param ...
0
votes
1answer
312 views

Filters post in admin with dropdown select, custom post type

I'm trying to filter my post in my admin area with a custom filter dropdown. I use this method to make it: http://wordpress.stackexchange.com/a/45447/84541 Here is my code: add_action( '...
0
votes
0answers
23 views

Hide admin menu items for role

I would like to hide the admin menu items 'Posts', 'Pages', 'Tools' etc. for specific custom added roles. But I don't only want to exclude the items from the menu, I also want to make it impossible ...
0
votes
2answers
47 views

How do I hide certain taxonomy boxes from users in admin add post page?

I would like to hide this particular taxonomy box in the admin on the add new post page.
0
votes
0answers
50 views

Site fast when logged in, slow otherwise - How can I determine the cause, workaround or fix the issue?

Details and background The site that I'm working on right now takes 2.8 to 4 minutes to load (this is the initial response from the server, the resource loading time is negligible) when not logged in....
0
votes
2answers
85 views

Include script files for admin submenu page

I created a sub page to "users.php" where I can add a user in a customized way. I used a lot of the code from "user-new.php". However, user-new.php seems to rely on some javascript file to display the ...
0
votes
0answers
27 views

Can you have the users list pre sorted by specific column?

I would like to organise users by date registered every time an admin visits the users page, without having to click again from: http://localhost:8888/wp-admin/users.php I can add the date ...
0
votes
2answers
82 views

Add button in admin columns

I would like to add a button next to the column name in e.g. edit.php admin screen. I have added a printsreen showing where I would like the button to go.. I have searched for available hooks but ...
0
votes
1answer
97 views

Moving Wordpress from host without FTP?

I have a website hosted with service A which do not provide FTP access, and I would like to move it to another host B which provides FTP access. Is there any way to move? Traditional Archive,Download,...
1
vote
0answers
72 views

Filtering *out* a taxonomy from the admin post list

I've got a custom post type 'Speakers' that, after some time, are added to a custom 'archive' taxonomy so that they can be sorted into different sections of the site. I'd like a way to hide any ...
1
vote
0answers
14 views

Locked out of admin and some pictures don't show after failed SSL installation

in a bit of a pickle here as I'm not sure what has caused the issue so hopefully somebody here can help me. So I purchased the SSL certificate and but the folder with the files in onto my website. I ...
0
votes
3answers
114 views

How can I allow a custom taxonomy for certain roles?

Im trying to only show a taxonomy for the editor and administrator but I haven't found a solution on SO or here. The closest thing I was able to find was How do I remove a taxonomy from Wordpress? on ...
0
votes
0answers
12 views

Posting from WP admin to another WP blog

I have 10 WP websites. One of them, or it can be any of them, but for simplicity , let's say that... one of them have a content (custom content type) that I want to post on 2 or 3 from others (the ...
0
votes
0answers
28 views

Custom post type doesn't display on admin list

I have a custom post type, list, with 86 posts, none of which show up on the list for its admin page. It just says "List not found". But when I choose "October 2015" from the filter dropdown, all ...
0
votes
1answer
27 views

Posts in Admin only display 1 Post instead of all

When I run wp-admin/edit.php I normally should get a list of all Posts. WordPress 4.3.1 running Avada Child theme. But I only get the last Post in the list. All (8) | Published (7) | Draft (1) As ...
0
votes
1answer
47 views

How do I check if the user is a site owner in a network?

I was accidentally using is_admin() to check if a user was an admin and found out that function is not checking that. So I looked for another one and I found is_super_admin() but that checks if you ...
2
votes
1answer
45 views

how to only add a top-level admin menu without it creating a sub-level-menu

Here is a the code snippet: add_action( 'admin_menu', 'travel_site' ); function travel_site(){ add_menu_page( 'Travel Site Menu', 'Travel Site', 'manage_options', 'travel-site-menu', '...
0
votes
0answers
11 views

Turn on certain plugin options after plugin install

I'm having issues in finding a way to auto-activate certain plugin settings on plugin activation. So for example , after you install the plugin "Option 1", "Option 2" will be automaticly ON. Here's ...
0
votes
1answer
34 views

Echo string in admin panel footer beside version no

can anyone help me out about how to showing something lets say "Hello World" beside the version no that shows up in the wp admin dashboard footer? I've already tried the action named admin_footer and ...
0
votes
1answer
88 views

How to change the title attribute for the WP logo image on wp-login.php

This is how I change the url for the WP logo on the wp-login.php page: function my_login_url() { $url = esc_url( home_url() ); return ( $url ); } add_filter('login_headerurl', 'my_login_url')...
0
votes
0answers
25 views

How do I control the list of Pages an author can see?

Using one of the role managers,I enabled Authors to edit/create Pages). The edit/create pages screen shows a tree of all the pages in the system. Is there a way for (beside going into the core) To ...
0
votes
2answers
20 views

How to switch between two forms for visitor once admin logged in?

I have two forms (form1 and form2). Once the admin is logged in anywhere, all visitors (not logged in) to my WordPress site should see form1 on the page, otherwise they should see form2. I am using ...
1
vote
0answers
239 views

Filtering posts list table

My post_type is 'part'. I created a custom field 'Images' this way (simply added new columns to the array): add_filter( 'manage_edit-part_columns', 'my_columns_filter' ); function my_columns_filter( $...
0
votes
1answer
45 views

Hide post title input for all roles except admin

How would this function need to be updated to exclude the admin? add_action('admin_init', 'wpse_110427_hide_title'); function wpse_110427_hide_title() { if (current_user_can('subscriber')) ...
0
votes
1answer
34 views

Organizing the position of widgetized areas in the backend

Is there a way to position the widget areas in the WP admin -> Appearance -> Widgets page? I've arranged my register_sidebars function in the proper order however they seem to be displayed randomly. $...
0
votes
2answers
138 views

Making menu link open in new tab?

I'm trying to add a top level menu to the left sidebar of the WordPress admin panel. Here's the code I currently have: add_action( 'admin_menu', 'linked_url' ); function linked_url() { add_menu_page(...
0
votes
0answers
34 views

Next and previous page buttons in wp-admin don't work

I have a problem I have never seen before. For some reason the next and previous page buttons in my wp-admin are messed up. Everything is working just fine on the website except for those buttons. The ...
1
vote
1answer
268 views

Actions that Run on Admin Edit Page Load After Posts Are Queried

What actions run on the edit page in the admin section of a post type? i.e. xyz.com/wp-admin/edit.php or xyz.com/wp-admin/edit.php?post_type=shop_order (custom post type) I need to run a function ...
0
votes
1answer
121 views

Set a default category - if the user didn't select one- before creating a post

Is there some option hook to set a default category for a custom_post_type when the user didn't choose any ? For example in RoR it's very simple - by using before_save filter you can set whatever ...
0
votes
0answers
11 views

Custom html for uploaded images [duplicate]

I'd like to make life easier for the guy who is going to upload posts on a wordpress site. The default html that is created upon upload doesn't work well with the design of the site, so I'd like to ...
2
votes
2answers
78 views

How do I remove the entire left nav bar in admin for certain level users?

I know how to remove items from the left nav bar (hook into admin_menu and do global $menu; unset( $menu[ __( "Posts" ) ] ); for example). But it still shows a left nav bar (with nothing on it). I ...
1
vote
2answers
37 views

Assuming a theme is properly secured, how save is the WordPress admin?

Regarding point 3 in this (awesome) article on mikejolley.com. It states: Never trust user input, even that provided by admin users, because: You have no way of knowing the user is whom ...
0
votes
1answer
106 views

Admin mode breaks with subdomains in latest WP

This is the symptom/issue - I am using a subdomain, and latest Wordpress Rev, as well as PHP on server. When signed in to my site as admin, if I choose admin/customize, I get a new signon screen ...
0
votes
0answers
138 views

Add post meta to search in admin of a custom post type

I am using woocommerce in a wordpress theme and I can't get the search functionality in the admin to include a meta value of 'shop_order' custom posts type. I've been trying to modify the following ...
0
votes
1answer
46 views

How to restrict wp-admin and prevent upload errors

I need to restrict wp-admin access to all users who cant manage_options and still let users add media on the front end. function wpse_11244_restrict_admin() { if ( ! current_user_can( '...
0
votes
1answer
34 views

Why doesn't the Media Browser use thumbnail sized images?

The folks updating our site oft complained about the media browser being very slow, so I went to have a look. And, on the first load of the page, and when doing a search within the media browser, its ...
1
vote
1answer
121 views

How to send little data between admin pages of my plugin?

I have a plugin that creates two pages in admin menu: /wp-admin/admin.php?page=list-records /wp-admin/admin.php?page=add-edit-record I'm regularly using add-edit-record to to create some sort of ...