7
votes
2answers
173 views

Displaying the number of updates available in the Admin area

I am having an issue finding out how to display the number of plugins/updates available to call somewhere else other than the admin header. I found the function wp_get_update_data should be what I ...
0
votes
1answer
170 views

Replacing select2 in admin backend for all selects

I originally posted this question as a javascript question here, but think maybe it would be better asked here. I tried adding select2 to all wordpress admin screens. However, since many selects are ...
-2
votes
1answer
82 views

Changed functions.php file and now site is blank [closed]

I tried to change the functions.php CSS page, commenting out the original load fonts function and replacing it with my own. Now, when I try to access the site, I just get a blank page. Even worse, ...
0
votes
1answer
61 views

add slug beside name in Admin Category Checklists

im creating a lot of Categories with the same Name and different slugs, but im having problems identifying which is which in the admin panel, so i came up with the idea of inserting the slug besides ...
0
votes
0answers
124 views

Pass PHP variable between functions in functions.php

I have a WordPress Admin page where you can add a "listing". Within this Admin Page I have added many fields which transfer variables over to the listing page which is created/updated. Within this ...
0
votes
0answers
101 views

Add CSS Classes Field to Media Uploader

I need a functions.php hook that will allow me to add the standard CSS Classes field to the "ATTACHMENT DISPLAY SETTINGS" section of the Media Uploader modal. I know the css class field can be ...
0
votes
1answer
385 views

Change the “Default Avatar” admin option via functions.php

So I'm trying to add a new default avatar for my theme using the following code: add_filter( 'avatar_defaults', 'mytheme_default_avatar' ); function mytheme_default_avatar ( $avatar_defaults ) { ...
0
votes
1answer
132 views

How to get new post URL?

I'm wondering... how can I get the new post URL in my theme? Is there a built-in function for this? So, it should return something like http://example.com/wp-admin/post-new.php?post_type=post. ...
0
votes
2answers
181 views

Removing the main link to Jetpack from the menu

I need to remove the link to the Jetpack settings, but not the links to Omnisearch and Site Stats from the admin menu for everyone not having an administrator role: For this, I came up with this ...
0
votes
0answers
203 views

Can't preview custom post - Redirected to home page

When I click on preview in custom post types I get redirected to home page. But when I visit or view the page that have all the Custom posts in I can see all of them. I cant figure out what or why. ...
0
votes
1answer
62 views

Remove “Published On” inside wp-admin

How do I remove this? Preferaly would like to do an action hook inside functions.php to remove this. I don't want the editor to see/edit when they published the article. Thank you for your help.
0
votes
2answers
141 views

Wp admin - Set default value to 999 in comments

When you are at the comments menu in wp-admin you only see 20 comments at the time, so if you want to delete alla comments you can ONLY mark the 20 comments you see on current page. It dosent mark ...
0
votes
1answer
172 views

Function to prevent users from trashing comments

Is there any way to prevent/hide trash button for comments? Note that I only want to prevent users from emptying the trash for comments. Can't seem to find a way. Is there any possible way to do that ...
0
votes
1answer
2k views

admin-ajax.php loading many times

My site is running slow, because the file "admin-ajax.php" is loaded many times. see screenshot here: http://f.cl.ly/items/2b0O3Q0X27433X2F2j3U/Bildschirmfoto%202013-02-23%20um%2014.13.14.png Here ...
1
vote
0answers
176 views

wp-admin won't load after setting wp-login custom url

I changed the wp-login.php url to /login/ so all links in registration and forgot password emails have /login/ rather than wp-login.php. The problem now is that when I visit /wp-admin/ or click on ...
-1
votes
1answer
109 views

Notifications Bar on home page only

Is it possible to create an "Alert" button that can be turned on and off thru wp-admin. Of course the "Alert" button im asking for is to be published at the main page, but can only be turned on when ...
3
votes
1answer
2k views

How to export comments in WordPress?

I want to export my comments to Excel, PDF or Word. The format really doesn't matter, I just want them exported. I tried the Export Comments plugin, the standard one, but couldn't get it to work, I ...
0
votes
1answer
403 views

Aspx/Rss feed - failed to open stream: Redirection limit reached

I have this issue ive been stuck with now. Its when i load a page that have a feed. I put the feed in wp-admin , this usually work with other feeds but not sure why its not working with this kind of ...
0
votes
1answer
174 views

Remove Permalink Meta Box not working?

For some reason the slug / permalink meta box is not being removed on the Edit Page screen. Code in functions.php function mjp_edit_meta_boxes() { // Remove Meta Boxes remove_meta_box( ...
1
vote
1answer
583 views

Enqueue Javascript Correctly for 3.5

I am trying to create tabs for admin settings page in wp, but I think I'm doing it wrong. The example below shows how I did it but I don't know how to change this to use it correctly with no conflict ...
0
votes
1answer
442 views

Sorting custom post types in edit.php : Post disappear

I've got a few custom post types with different taxonomies and I have a function that adds certain categories to post list view in edit.php admin screen. Everything good there. I've also added a ...
0
votes
2answers
192 views

Change Default Content when Creating a Post based on Previous Category Choice

I'm working on a system that forces users (unfamiliar with wp) to choose a category before creating a new post, and then adds some appropriate html layout styling to help them. The following code ...
1
vote
1answer
928 views

Remove “Parent” Selection When Adding/Editing Categories?

I've been trying to find a way to hide/deactivate the Parent dropdown menu from the Posts -> Categories screen. http://example.com/wp-admin/edit-tags.php?taxonomy=category I was able to hide the ...
0
votes
1answer
112 views

Where do i create my own function in wp-admin

i want to create my own function in wp-admin same like do in wp-content->functions.php, but i don't know where is the function file in wp-admin folder. anybody know where is the function file in ...
2
votes
1answer
602 views

difference between add_object_page and add_menu_page

According to Codex, the add_object_page "essentially does the exact same thing as add_menu_page() in case you're wondering". So.... what is the difference between those two functions?
0
votes
2answers
131 views

How to change a specific admin label

I'm trying to change on the backend from: Appearance -> Header To Appearance -> Logo But the Changing Admin Menu Labels answer didn't help so far. Any new tip? Thanks
3
votes
5answers
2k views

wp-admin page is blank

Something is wrong with my wp-admin page, it just shows up blank. I am pretty sure it has to do with my function.php file there is no whitespace on the top or bottom, but when I delete it completely, ...
5
votes
1answer
834 views

how to group custom post types

hi wanted to know do i group my custom post types to appear together in a group in the wordpress back end menu bar like this below in the picture what code do i have to use in my functions.php so that ...
1
vote
1answer
191 views

Target a certain page within wordpress backend (admin) i.e. Pages > About

How can i progammatically see if the page that is currently open in the wordpress admin is 'About-Me'; I wish to run specific functions depending on the page the user is editing in the ...
0
votes
1answer
147 views

How to change a meta value (of a published post) after X days.?

I have a custom field. I would like to change the text of that custom field after x days. I want something like this: if ( published post is more than 90 days old ) { echo "your post is more ...
1
vote
6answers
4k views

Adding fields to the “Add New User” screen in the dashboard

I'd like to add the field "Company Name" to the add new user page in the admin panel. I've done quite a bit of searching and have been unable to find details on how to do this. I can easily add info ...
1
vote
5answers
259 views

Problems with removing admin bar

I am trying to remove the admin bar from a theme front end of a theme. I found the following code block: add_filter( 'show_admin_bar', '__return_false' ); remove_action( 'personal_options', ...
3
votes
3answers
3k views

How to fix a theme with page.php Default Template that accidentally deleted?

I am having a quite odd case with WP today, and after spending about an hour searching on google and forums, can't find any answers. I hope posting here might allow me some chance to get help from ...
1
vote
3answers
2k 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 ...
17
votes
3answers
23k views

Changing Admin Menu Labels

I have spent the last day using the functions.php file to fully customize WordPress for my client sites. I am amazed at how much I have been able to accomplish and how much easier it will make things ...
1
vote
4answers
192 views

how do you create an admin interface in plugin for your theme

I'm creating a theme that would need some settings on the client side. So I need a admin interface where they can set some values. (like, source of image, title, or numbers) so in my theme, I can ...
0
votes
1answer
2k views

How to display multiple custom columns in the wp-admin users.php?

I'm using the manage_users_columns to display a custom field I create in the usermeta database called company. My code is as follows: function mysite_column_company( $defaults ) { ...
6
votes
2answers
2k views

How to add a custom metabox to the Menu Management admin screen?

Although I am very thankful to the wordpress core team that they have finally integrated native menu management capabilities I get frustrated with some key elements which I would like to change. I ...