All Questions

Tagged with
Filter by
Sorted by
Tagged with
9
votes
2answers
4k views

How to display by default only published posts/pages in the admin area?

As it is, WordPress displays by default all the pages/posts in the pages/posts list in the admin area, no matter what their publishing status is. I have a lot of drafts, but usually I'm much more ...
7
votes
2answers
6k views

Any guides on creating custom admin pages?

I basically want to create a table (preferably AJAXified) that lets the user enter a line of information, and be able to add new lines of information, and delete selected ones. I've found this post ...
5
votes
4answers
9k views

WordPress admin screen very slow / timing out when editing or adding a new page/custom post

I'm new to the site but appreciate any help you can give. I have a WordPress set-up which (rightly or wrongly) has hundreds of pages and thousands of another custom post type which is also based on a ...
4
votes
2answers
2k views

Can I display the widget admin in the page admin?

I would like to show the 'Appearance -> Widgets' menu underneath the text field in 'Pages -> new/edit'. Is it possible to take one part of the admin and show it elsewhere? Reading some of the answers,...
3
votes
1answer
1k views

How to change redirect after moving a page to trash?

How could I change the redirect location after a user trashes a page? Right now they go to all pages here:....wp-admin/edit.php?post_type=page I want them to go here:......wp-admin/edit.php?...
3
votes
2answers
1k views

Modify built-in post type properties

I have an unusual situation where I need to make the built-in post type 'page' non-hierarchical. I printed the post type object with var_dump(get_post_type_object('page')); die; and I got this: ...
2
votes
2answers
9k views

Page only shows when user is logged in (even with visibility set to public)

I'm trying to troubleshoot an issue on a client's site. There is one specific page which appears as "not found" unless you log in and then visit the front end, in which case it appears normally. The ...
2
votes
2answers
5k views

Change admin startpage to Pages-page?

When you login to the admin you see the Welcome page by default. A client of mine requested to see the "Pages" page by default, he had seen it somewhere else. Is this possible, and if so, how? Tried ...
2
votes
2answers
1k views

How to make certain page templates visible to admin only

Making a site for a client, I have some pages that the client won't be able to edit or delete. These pages rely on specific page templates. However, I don't want these templates to be available for ...
2
votes
1answer
254 views

Only allow new subpages to be created

I'm looking for a way to only allow users to create new subpages once there are nine pages that are parents/root pages. Once there are nine parent pages when trying to create a new parent the users ...
2
votes
2answers
7k views

Is there a way to lock certain pages from being edited by anyone other then the admin?

I have built a WordPress site and theme and have several pages that I do not want editors to edit. However, there are other pages that I want them to have access to to edit. Is there a plugin or code ...
2
votes
1answer
752 views

What is the optimal way to filter out subpages from admin?

I guess it's always possible to hide them with js, but is there a code snippet out there for query level child page filter? I only want top level pages to remain. EDIT: my coder came up with it, stay ...
2
votes
1answer
2k views

Help extending custom drag-drop page ordering on admin page list screen

I am utilizing the following code which transforms any hierarchical page or custom post type with the ability to reorder the the pages through simple drag/drop. (also this code also adds a new display ...
2
votes
3answers
1k 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 ...
1
vote
3answers
5k views

How to disable Page Attributes dropdown in wp-admin

As discussed at WordPress admin screen very slow / timing out when editing or adding a new page/custom post I am having a similar issue on a WP site containing 7,784 pages. Edit screens are slow ...
1
vote
1answer
672 views

wordpress reusable content blocks

I am using a custom post type to allow the editor of the site to add a number of blocks of content to the site - infoboxes. Now i would like to give the editor the possibility to choose which boxes ...
1
vote
2answers
9k views

Add a Menu Link (to a Wordpress Page) in the Admin Menu/Sidebar

I am trying to add a link, in the Admin Sidebar, that links to one of the pages I've created in the PAGES section. For example, I've created an ABOUT page. So in the sidebar I would like a link to "...
1
vote
2answers
259 views

Remove pages from backend list *and* update counter accordingly

I hidden some pages using 'parse_query' hook, but the count for 'Published' pages didn't changed... Where I should hook to change it? My code so far: $query->query_vars['post__not_in'] = array(4)...
1
vote
1answer
122 views

Is there a way to remove or hide individual pages on the Edit Pages screen?

I want to create a handful of pages that I do not want the client to have access to through the edit pages admin screen. I do want the pages to have all the normal functionality of pages in other ...
1
vote
1answer
2k views

Hide pages depending on role

I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel. I looked in the edit.php file and noticed: } elseif ( 'page' == $post_type ) { ...
1
vote
1answer
837 views

Edit page's “Restore the backup” link does nothing

Every now and then WP logs me out and a pop-up requires me to log back in. After this happens and I am back in, I try to save some changes to a page I'm working on, but there is an error like "Are you ...
1
vote
0answers
30 views

Can't locate a hidden private page

I have 9 published page, and 1 private (invisible) page, in total 10 pages. However, my wordpress says that there are (2) private page, and total of (11) pages. How can I locate the unseen page?? FYI,...
1
vote
0answers
185 views

No Permission to add new Page, Post or CPT with Admin role

After a server update, I got some problems on my website, running WordPress 4.9.2 I could not update WordPress version to 4.9.4, cause I was getting a message like this: Another update is ...
1
vote
1answer
832 views

Role - edit page but not publish

I am pretty new at Wordpress.. So I have this problem: I need a user role that has the rights as a contributor but for pages. As I have no posts in my website the users will have to edit pages. Every ...
1
vote
0answers
42 views

Ad custom admin page like WordPress customizer [closed]

Is it possible to create a empty page (completely empty without sidebar, ...) in admin panel. Something similar to WordPress customizer (.../wp-admin/customize.php) page: .../wp-admin/builder.php ...
1
vote
1answer
56 views

Adding Page URL to the Pages Admin Table

I want to add the Page URL as a custom column to the Pages admin table. Here is where I am at with the code. Code is in the theme's functions.php. function lrh_modify_page_table( $column ) { $...
0
votes
2answers
245 views

How to use is_admin in page content?

I'm trying to add a "Click here to edit this page" button in some Wordpress pages. This button should only appear if the user is admin, this is the code that should appear if the user is admin: if ( ...
0
votes
2answers
9k views

Dashboard--> All Pages “How to create folders?”

I have going on three pages in All Pages on my Dashboard. Is there a way I can set up folders for these pages - - it's becoming a confusing "mess" to find which page I need to update when - for ...
0
votes
3answers
105 views

How to detect when admin user is on the All Posts page?

Could anyone be kind enough to descrive how to I can detect (in my functions file) when admin an user is on the 'All Posts' page? I have tried get_post_type() but it returns nothing. Thanks.
0
votes
1answer
3k views

How can I make a menu link visible only to admins (without plugins)?

I use a menu on top of my wordpress which shows 3 links. Main page Custom Page Custom Page Can I add a 4th link to my menu which is visible and accessible to admins only (without plugins)? This 4th ...
0
votes
1answer
35 views

How to create “custom page types” with different custom fields in them?

I have lots of pages that perform very different purposes in my website (landing pages, thank you pages, regular website pages, webinar pages, etc). As such, I would like to group my pages into ...
0
votes
1answer
688 views

logout redirect only from admin page

How can someone (that has access in Admin area (/wp-admin/) backend), when he is already logged in, and he wants to logout (default WordPress Logout) but only from inside this area, to be redirected ...
0
votes
1answer
557 views

Is it possible to restrict access to specific pages in the admin area based on the page slug?

I would like to restrict access to specific pages in the admin area to only the admin role (and / or specific users). There appears to be no shortage of answers on how to do this using the page ID's - ...
0
votes
1answer
49 views

Get content and send to 3rd party

I've been asked to create a WordPress plugin that will basically show a button on the "edit" and the "new" pages of the admin panel which (when clicking the button) verify an API key (which you can ...
0
votes
1answer
572 views

Removing custom sort order from admin page listing

For the background to my question: On my page listing, I've got a set of pages that are countries and the child pages of those are categorised into 'Types'. So I've got a page structure like this: ...
0
votes
1answer
21 views

I don't want the complete article to show on homepage

When I post articles the complete article shows in the home page. I just want it to show Intro and then read more. I did not create the site myself and just taking on the role of admin of the page.
0
votes
2answers
5k views

Display Custom Field Value on Admin Page Column

What I want is to display the value of the custom field called 'page_template'. I use the code below but it displays nothing under Page Template column although I have already defined a value for the ...
0
votes
1answer
210 views

add_menu_page does not render the expected result

I'm trying to accomplish the simple task of adding a new page to the admin area but it seems that I just cannot wrap my mind around this simple function. Via codex, this is how I'm trying to add the ...
0
votes
1answer
1k views

Publish page by invoking submit via jQuery

I'm looking for a solution to a bug that occured in an answer to an earlier question. The general idea is that I want to invoke submit on the post form and have the page published. What happens now ...
0
votes
2answers
227 views

Default scripts added to each admin page

Whilst jQuery is available on all admin pages, only selected jQuery UI libraries are added for certain pages (i.e. it is different for each admin page). I am trying to find out where the jQuery UI ...
0
votes
1answer
109 views

Editing Help Section

I was trying to find the contextual help section for all the admin pages so I could add some additional text. The main pages I need to hit are the "Pages" page and the "Widgets" page but I'm not sure ...
0
votes
1answer
353 views

Show private pages in public when you logged in as admin?

Is there any way to show private pages at the public website section when you logged in as admin? Today, they only shows in admin.
0
votes
0answers
12 views

Add new Add Page button

I would like to add a new button next to the Add New button when viewing the list of pages in the WP admin. I would like this button to create a new page, but set the page template to a specific one. ...
0
votes
0answers
15 views

Not saving empty text field in WordPress

I have it where when someone leaves a text field empty in the WordPress admin panel, it will display a admin notice and still save the results to options.php. I'd like to grab the value of 'insta_id' ...
0
votes
0answers
29 views

How to filter page title for certain page?

I have saved in DB in options an ID of certain page. I wanna use that ID to filter corresponding page title and add a postfix in pages overview as follow. So for example to add postfix "- My Chosen ...
0
votes
1answer
22 views

Put page on Archived statut after end of publication date

I’m looking for a way to put pages on archived statut after expiration of the publication date. First, I add archived statut to the platform (code below). This statut appear if the page is published. ...
0
votes
1answer
294 views

Add_Meta_box to custom page (formidable edit post)

I'm working on a minor "project" on my wordpress site, and im trying to add a custom metabox to the formidable - edit post(page?) screen. But i seem to be unable to figure out how to do it. ...
0
votes
1answer
30 views

Wordress admin page is fetching error You do not have sufficient permissions to access this page.

Wordress admin page is fetching error You do not have sufficient permissions to access this page. Mysite url is https://www.artvault.co.in but its admin panel url - https://www.artvault.co.in/wp-admin ...
0
votes
1answer
516 views

Hide Admin posts & pages in Dashboard

Is it possible somehow to hide Admin's pages & posts from dashboard so that other users will only view/list non-admin publications?
0
votes
2answers
156 views

Admin menu disable new/delete page

So I've been tinkering with the admin roles and I can't seem to be able to revoke create page rights for the admin. I can only find 'Edit page'. If I remove Edit page, the entire pages tab goes away(...