Tagged Questions
1
vote
2answers
27 views
Admin Menus - Name Menu different from first Submenu [duplicate]
I am creating a submenu with the following code:
add_action( 'admin_menu', 'jp_create_admin_pages' );
function jp_create_admin_pages()
{
add_menu_page(
'Members',
'Members',
...
0
votes
2answers
40 views
Reference external file as a function
In my functions.php I have the following code:
add_action( 'admin_menu', 'jp_create_admin_pages' );
function jp_create_admin_pages()
{
add_menu_page(
'Members',
'Members',
...
0
votes
1answer
42 views
What's causing this error? “Warning: Invalid argument”
I noticed today that my error logs are littered with this information. I'm not quite sure what's causing it. Has anyone seen this before?
[Mon Mar 25 17:24:23 2013] [error] [client] PHP Warning: ...
1
vote
1answer
152 views
Adding a custom admin page
I want to add a page of content (a readme file) in the WordPress admin, I can't seem to find how to do this in the codex - can anyone point me in the right direction? It will literally just be a ...
5
votes
5answers
331 views
Add separator to admin submenu
I would like to add a separator to the admin submenu section, NOT in the top level section.
I'm thinking of using javascript and styling to do the job, but I was wondering if there's a more ...
0
votes
1answer
211 views
Usage of custom post types in a custom admin menu
This question is a little hard to explain but i will try to be as clear as i can:
I have a custom theme that i am presently working on, within this theme i have added a top level menu in wp-admin ...
0
votes
1answer
107 views
Re-ordering Admin Submenu Sections
I was looking at the method below to reorder the Admin Menu Sections:
http://wordpress.stackexchange.com/a/1220/1044
...and was wondering if it's possible to reorder the submenu sections using ...
1
vote
2answers
39 views
Admin pages have no content
Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, ...
2
votes
1answer
200 views
How to add admin bar and admin menu or submenu notification bubbles?
What would you recommend to use as far as manipulating the admin bar goes? I was thinking to just add a new admin bar node, and with CSS set a background image for the icon. Then in the node, just ...
0
votes
3answers
326 views
Change top level menu item to point to custom submenu item
I'm using a plugin called CMS Page Order http://wordpress.org/extend/plugins/cms-page-order/ (Now referred to as CPO)
It's pretty simple, the said plugin adds a new item to the submenu of every ...
2
votes
2answers
144 views
How To Create User Specific Admin User Pages?
The aim is for a proposed site to have customers be able to login and be able to view a private and customer specific ADMIN page NOT frontend page (although this would be much easier to achieve).
...
1
vote
1answer
298 views
Associating custom submenu item with post type of top level menu item
I'm working on a plugin that sets admin menu submenu pages on all different post types.
I need to be able to associate these new submenu pages with the corresponding post type of the top level menu ...
1
vote
1answer
747 views
How to put placeholder text in the main post input area?
I'm making a course plugin for a university in England. I'm looking to put some default placeholder text in the main post content area, on the admin side. Its the rich text editor I want it to go ...
0
votes
2answers
166 views
Proper way to create an administration page without adding it to the menu
From what I've seen around the code, you can do this by hooking a function on admin_init, do you stuff and then die().
Is there a better way that follows "WP best practices" I'm missing here?
The ...
0
votes
2answers
1k views
How do I fix this error: Warning: invalid argument supplied for foreach()?
I recently moved a wordpress install from my local instance to a dev server. For the move, I installed a clean version of wordpress 3.4, moved exact duplicates of the file structre, and used the ...
0
votes
1answer
29 views
avoiding the display of certain categories to certain user roles at content entry time
How can I eliminate the "featured" category (and its sub tree ) in the admin panel when the user role is not editors or admins?
0
votes
2answers
46 views
creating a plug in that would tap into save/update action of posts
What's a good plug-in that taps into the update post or save post action that allows admins to enforce rules such as if a user selects a category with the ID 5 then he also has to select at least one ...
2
votes
3answers
790 views
How to remove entire admin menu?
I need to customize the admin panel for my user. So how do I remove the entire admin menu? Not remove the menu item, I mean entirely remove the left vertical menu bar, include the design of the menu ...
1
vote
1answer
83 views
page not updating with database
I have code which updates the database fine, but the page doesn't update correctly! I have to refresh the page a second time for it to update correctly.
Here is the code below ...
-1
votes
1answer
32 views
What plugins would you recommend for improving the admin dashboard's category selector? [closed]
Is there a plug-in to change the default behavior of the cat's drop down in the admin dashboard so that I can type-in the name of a category and the results are filtered down to those starting with ...
0
votes
2answers
226 views
Is it possible to disable certain user roles from creating tags?
As a site admin, I'd like to have control over things.
I'd like to prevent my contributors and authors ( who generate content for me ) from creating new tags. I don't want that tag taxonomy to turn ...
2
votes
3answers
483 views
Change the Default Pages Menu View in wp-admin
I can't seem to figure out how to change the default view for "Pages" in the admin menu.
The initial view is the "Pages" view (/wp-admin/edit.php?post_type=page)
How could it change this to ...
5
votes
1answer
367 views
Modify Admin Bar Link
Starting on line 474 of /wp-includes/admin-bar.php there is a function that is declared as the following:
function wp_admin_bar_new_content_menu( $wp_admin_bar )
What it does it generates the + New ...
0
votes
2answers
1k views
How can I add a menu item to the admin area?
I've used almost all of the Wordpress example code but it still doesn't work. I've put the php file under wp-content/plugins/menuitem/ .The code is simple
<?php add_action('admin_menu', ...
1
vote
1answer
150 views
Remove Admin sidebar link
I have a taxonomy link in my admin sidebar i'd like removed from view.
Only in the sidebar though, i will still be using the function in the post view, so if that creates problems a simple simple ...
1
vote
2answers
117 views
Why am I timing out when using the Menu Editor?
I'm using a more or less fresh local install of WP 3.3.1. A few days ago I set up a couple menus (Appearance > Menus) without a hitch. Today I tried creating a new menu and add a page to it, but the ...
0
votes
2answers
356 views
How to prevent parent admin page from appearring as a child admin page
I am using this code:
add_menu_page($page_title, $menu_title, $this->capability, $menu_slug, $function);
Which is adding top level admin page. When I add:
add_submenu_page( $menu_slug, 'sub ...
0
votes
1answer
728 views
Admin top level menu, pointing to an external url
I want to create a entirely new top level menu in the admin menu section, and have that be an external link, is this even possible with the current system?
The solution that t31os provides in this ...
2
votes
2answers
647 views
Add column to pages table
Hey all i am trying to find the section within the edit.php page where it populates the table with all my current pages. What i want to do is add another colum to the table in order to launch a side ...
4
votes
4answers
150 views
Add my own button next to “Screen options” and “Help” in the admin
I'd like to add my own button link next to these two. Is this possible?
1
vote
2answers
579 views
Create a admin page in wordpress without admin menus (“wordpress sidebars”)
I'm creating a new page in WordPress admin for a theme. In this new page will be a list of people registered (in a form), but with few details / information. So when a person clicks on something, I ...
3
votes
1answer
925 views
Is it OK to move admin menu items?
I have a site with eight custom post types. Each is registered with 'menu_position' => 5 (below the Post menu). A side effect of having more than four CPTs is that the Media menu now appears in the ...
1
vote
3answers
1k views
Make sub menu items a main link in the admin menu using fuctions.php
I am trying to customize the admin area using the functions.php file to make things easier for my clients. One request I have got before and hope to be able to accomplish, is to move some of the sub ...
3
votes
3answers
9k views
Plugin to remove Admin menu items based on user role?
I searched high and low for a plugin that can remove/hide Admin menu items , including custom post types and taxonomies, based on user role.
Every one I have tried only does a global hide, not based ...
1
vote
1answer
140 views
Administration Pages Styling
I am adding administration pages using add_menu_page() function. But it wont look good. Check the image below.
I would like to have it as separated and in between Appearance and Plugins section ...
11
votes
4answers
6k views
Add a Separator to the Admin Menu?
Does anyone know how to add an admin menu separator? I found this but it did not help.
http://lab.yukei.net/wp-code/nav.html?wp-admin/menu.php.source.html
Any ideas?