Tools for site administration located in the `wp-admin` directory of a WordPress site.

learn more… | top users | synonyms

0
votes
0answers
60 views

Add button in TinyMCE editor to insert text

I'm searching a way to add a custom button to the TinyMCE editor when clicked insert into the visual editor some text. For example: button called "Hi" when clicked insert into the editor "Hello I'm ...
1
vote
0answers
60 views

TinyMCE strips breaks inside editor

the posts are shown correctly in the frontend. But when i go to edit, the content inside tinyMCE is without breaks ?! So i have to copy my content from frontend and paste it to the editor every time i ...
0
votes
0answers
26 views

Error post_type link admin pagination

I have an error with bad links on all my specials post_type created by the plugin "magic-fields-2". on the admin link (pagination, eg: go to page 2) i can see : ...
0
votes
0answers
77 views

Renaming child-theme folder fixed wp-admin blank

Weird thing happened. I have a WP instance, and I wanted to have a local copy. I copied all the files, created the DB from a dump, and everything seemed to be working fine. However, when going to ...
1
vote
3answers
75 views

Replace wordpress login logo with custom text

I wanted to replace the wordpress logo which is displayed on login screen with some custom text. Here is the code what I tried so far: function my_custom_logo() { echo '<style ...
2
votes
2answers
162 views

How to use Yoast SEO backend in english even if WPLANG variable is not english?

I added this code to my functions.php file add_filter('locale', 'wpse27056_setLocale'); function wpse27056_setLocale($locale) { if ( is_admin() ) { return 'en_US'; } return ...
1
vote
1answer
176 views

Add content before/after admin post wp-list-table

I know there are two hooks to add content before and after a taxonomy wp-list-table. Is there an action to add content after the post type wp-list-table on the edit.php page? For $taxonomy List ...
1
vote
2answers
75 views

Custom Menu Broken WP 3.8.1 Update

Custom menu has stopped working since upgrading to 3.8.1. When trying to add items from the left they do not show up as movable items as they should do under Menu 1, however the text changes to: "Drag ...
0
votes
2answers
37 views

Change admin defaults for reading settings

I have customised index.php to display 6 posts: <?php // Get header get_header(); ?> <div id="primary"> <?php // Begin paginate and loop $temp = $wp_query; $wp_query = null; ...
0
votes
1answer
167 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 ...
68
votes
12answers
38k views

Adding a Taxonomy Filter to Admin List for a Custom Post Type?

I have created a Custom Post Type called 'listing' and added a Custom Taxonomy called 'businesses'. I would like to add a dropdown list of Businesses to the admin list for the Listings. Here is what ...
0
votes
0answers
47 views

Responsive Development in WordPress Backend

I've gotten so used to using Twitter Bootstrap. However, I can't seem to use it on the backend. I'm assuming it's conflicting with something in the core. So is there a way to get Twitter Bootstrap to ...
0
votes
0answers
298 views

Getting 404 page not found error while trying to access add new plugin / themes

I am getting 404 page not found error while trying to add new plugin or view installed plugin in my admin panel. i am using Hueman theme. every time i tried to use some option of admin panel i am ...
0
votes
0answers
27 views

Filtering in admin broken for custom post type in 3.8.1?

Is there a known issue with the All, Published, Scheduled and Drafts filters in the post listing page for custom post types for 3.8.1? The links update as well as the URL, but the listing doesn't ...
0
votes
1answer
64 views

Show error message after exception handled

I have a plugin that updates a user profile, and I want to handle a date exception and show a error message when it fails, but I can't make it work. Here is part of the class: private function ...
0
votes
1answer
38 views

How do I change the login logo URL and hover title?

I am trying to change the login logo URL and hover title. I am using the code below but return bloginfo('url'); and return bloginfo('name'); aren't outputting the desired href and title. I'm also ...
0
votes
0answers
43 views

How to handle POST reqests the WordPress way without including admin API?

It is all about sending newsletter registration data in forms. AJAX is primary solution, POST is just a fallback. I've planed to do in in wp-admin/admin-post.php as an action but it includes all the ...
0
votes
0answers
25 views

After Login Page says 404

I installed wordpress at abc.com/myblog/wp-login.php Once i login to the admin it displays the header and footer of the site and shows 404 pages in the middle portion. Is that permission issue ?
0
votes
1answer
38 views

Custom Post Type not showing anything added by code anymore?

So I have a piece of code written and it worked before, hasn't been edited hasn't been changed, no updates on the WP DB no updates on any plugin on WP and it's suddenly not working correctly. This ...
0
votes
1answer
61 views

jQuery .change() Event Bubbling in WP Admin

Experiencing some very odd behaviour in WP Admin, specifically on widgets.php. I'm creating a custom widget, and am writing some simple JS. This is the hook I'm using to enqueue my JS: /** * Enqeue ...
0
votes
2answers
56 views

In the Admin Dashboard, can I choose which sections to display?

For the editor I would just like to display Pages, Posts, Media and Menus. Is there a way of doing this with the functions file or similar? Thanks in advance.
2
votes
2answers
578 views

Hide a theme on list of themes in wp-admin without editing core files

I'm running a multisite network with 200+ themes installed and activated. Is there a way to manipulate the list of available themes in wp-admin so that certain theme does not appear in the list? I ...
0
votes
0answers
12 views

User info in the admin sidebar

I think nobody has yet think of this, hope someone can help me. Im trying to add a user info pannel in de admin sidebar, right at the top. Just like the wp-admin-bar-my-account in the admin bar, just ...
0
votes
1answer
165 views

How to add custom content under plugin row in WordPress admin plugin list?

I'm looking to add a custom message under my plugin in the "Plugins" page, much like the following screenshot: What action or filter should I use? Thank you!
1
vote
1answer
135 views

Show hierarchical relationship between to custom post types on admin list

I have two custom post types: "request" and "quote". Both have the "hierarchical" flag set to true. A 'request' cpt can be the parent of one or more 'quotes' cpt. Since these are two different post ...
-1
votes
9answers
14k views
1
vote
1answer
487 views

Show Custom Post Type values in Wordpress grid view

I have created a custom post type in WordPress as shown in figure. What i want is to show the values eneterd in this custom post in the grid view of admin panel. Now the admin panel is only showing ...
1
vote
1answer
67 views

Custom Postype specific changes in admin panel

I have this small bit of code which does exactly what I need. But I want to limit its use to one Custom Post Type (CPT) only. add_filter('sanitize_title', 'my_custome_slug'); function ...
0
votes
3answers
36 views

Create Custom Admin Fields

I'm looking to create custom admin options/menu/fields (I'm not positive on the correct terminology) and would like some guidance. I found a post here which does speak about it in the answer: Tips for ...
1
vote
4answers
938 views

a plugin to share a post to social networks via admin?

I'm not looking for a share this post button for the front end. I've seen a couple of similar topics here but not exactly what I'm after. What I would like is a plugin which offers the options in ...
0
votes
1answer
54 views

Run two wordpress on the same domain

Edit I have a productive wordpress site (example.com) and a test wordpress site (test.example.com). For the two sites, I've a productive and a test DB. Everytime when I'll access the settings for ...
0
votes
0answers
174 views

List post in wp-admin and sort them

this is my first public plugin called Sort posts in taxonomies. With the plugin I intend to list regular posts and custom post_types in the Category(Taxonomy) edit page in wp-admin. Further give the ...
1
vote
1answer
31 views

How to use the same code for multiple pages?

The code below prevents a page (defined by its title) from being deleted. When I try to implement two occurrences of this code (one for each page I want to prevent from being deleted) I receive the ...
1
vote
0answers
49 views

edit.php alter links

I want to alter the view of edit.php in the posts admin area. What I want is when a category is set ( $_GET['cat'], cat=x in the url ), add post would be post-new.php?cat=x. Is this possible? I know ...
1
vote
1answer
217 views

ASCII to Unicode conversion and then save the data into database using WP post editor field

Here is the WordPress default post editor as we know: You may notice, here are some garbage texts in the Title and Description field. They are ASCII texts. PLOT In Bangla, a widespread software ...
0
votes
0answers
50 views

Cannot edit posts after moving WP site

Just moved a 3.8.1 site to a new hosting service. Copied all files (checking all permissions afterword) as well as a complete copy of the db. Uploaded db on new server, and updated the config file ...
-2
votes
2answers
634 views

Removing Author name

I want to remove the author name from every post. O am using a website in wordpress.org. and I'm using tweenty fourteen theme. How to remove the author name? Do I have to go to the Author template ...
1
vote
1answer
62 views

Edit default comments page in WP Admin

I need to make major changes on the way the comments are rendered in backend, from the following file: wp-admin/includes/class-wp-comments-list-table.php I know editing the WP Core files directly is ...
0
votes
0answers
96 views

user_has_cap filter allows edit but will not allow save

Problem I'm working on a website where we need to be able to put a username in the custom field of a custom post type, and allow the user specified to make changes to that post and only that post. I ...
1
vote
2answers
62 views

How to place HTML below the title of the (custom) post overview

Edit: Yes, I know, I provided an answer to this question myself. However, I'm still interested in other solutions and/or comments on the one I found. Is this how you would do this? Are there any other ...
1
vote
1answer
7k views

Change WP-Login or WP-Admin

Can I change the name of the wp-login or wp-admin file so that I can go to a different filename in order to login. I am trying to prevent hackers from finding my login and wp-login has become a very ...
0
votes
1answer
130 views

Admin Panel - Custom Menu Sub-Item LINK

I'm trying to add a custom link under my Post Type in my admin menu, which will link to Pending Posts. This code functions, but it instead makes a page (like I suppose the function should), but I just ...
0
votes
1answer
62 views

Get post id in Post Page within Wp-admin

I want to get post ID within Post page. I need this for custom meta box so i can set the id in shortcode. I can show the result in notices but don't know how to make it global to use for meta input. ...
0
votes
1answer
42 views

Always show same size tags for Tag Cloud in Wordpress Admin

I wanted to know if there was a way to modify the back-end of Wordpress to do 2 things: Make all tags' font the same size, so none are larger than the others Always show the most used tags when ...
0
votes
2answers
379 views

How to restrict user to see his comments only and admin can see everyone comments?

i was trying to achieve this how can i restrict user to see his comments only along with admin replies and admin can see everyone comments? Any suggestion with code would be helpful as i am new to ...
0
votes
1answer
274 views

Change maxlength of link_description in dashbord link section?

Im using wordpress together with qtranslate and it works on pages and post but not in menus, widgets etc. So i created jquery scripts to solve those issues. The problem is that the field ...
1
vote
1answer
397 views

How do I add to the list table a filter?

I am trying to find the hook for adding a filter to the list under "Posts [Add New]":
0
votes
0answers
29 views

Group Pages based on Parent in Admin Area

EDIT: I've managed to solve this with the help of Reddit. For those interested I used Admin Column View My website has about 50 pages separated under 5 parent pages. In the backend it is a mess of ...
0
votes
1answer
119 views
1
vote
1answer
40 views

how to redirect to url.com/wp-admin if url.com/admin is typed in?

How would I create a wordpress function that will redirect a user to myurl.com/wp-admin if they type in myurl.com/admin? I would like to have this as a wordpress function.