I think setting 'publicly_queryable' => false
should solve your problem!
Related Posts:
- is_admin() returns true when using admin-ajax.php from front end script
- Are there any action like ‘init_frontend’
- front end logo upload like happytables
- Conditional check for front-end which includes ajax
- WYSIWYG – Getting the “link” button from HTML mode in Visual mode
- How would I add a link to the profile editing page of the dashboard?
- Remove Admin sidebar link
- front end editing using iFrames, best approach?
- WordPress Frontend Check If Current User Is Administrator
- How to change the link of the wordpress logo in the admin bar?
- How to show WordPress admin dashboard forms on front-end?
- Login to admin by frontend form?
- Can you check if https is enabled on frontend from admin
- WordPress4.1.15 Dashboard links not working
- Disabling “View” mentions from backend?
- Editing post in admin panel
- Lock Display Name To Nickname
- WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
- 500 error for regular users, not for admin
- What are the standard admin CSS id/class tags?
- how to know if admin is in edit page or post [duplicate]
- The website cannot display the page
- Set Default Admin Colour For All Users
- Settings API – easiest way of validating checkboxes?
- Uploading files in admin panel?
- Redirect Admin User in Dashboard
- Read only capability for custom post in admin area
- How can ‘admin_email’ be set?
- How to change WordPress default strings?
- Remove ability to access certain admin menus
- Gutenberg “Add Block” button is not active (greyed out), cannot add new blocks
- How To View Site from Non-Logged-In User’s Perspective
- Hide update messages from non-admin users?
- Daily notices of failed login attempts for non-existent admin user
- Wrong url in sortable column headers & pagination in the admin, when behind a proxy
- “Automatically add new top-level pages” Default
- Is it possible to hook AJAX to UPDATE-button?
- Get email address of type Administrator
- Check if user is logged in else login page
- Add tabbed menu to admin page
- Is there a way to have admins that are logged in to wordpress not have to enter the password for password protected pages while browsing the website?
- Error thrown. Cannot create references to/from string offsets
- Include admins in author drop-down on edit post screen
- How can I restore admin capabilities?
- How to restrict wp-admin and prevent upload errors
- Adding another “Add Post” button to admin
- How to determine if an admin is logged in outside the loop
- What determines whether admin toolbar is shown to a logged-in user?
- Adding text in more than one language (at the same time)
- How to get view count of every page on site and add that (increasing) number to Dashboard Widget
- Restrict function call to page load but not ajax call
- How do I remove All and Published if not admin?
- How to disable https from wordpress site?
- Fatal error: Exception thrown without a stack frame in Unknown on line 0
- Apply permissions per post
- Where should I hook into admin?
- Settings API not saving values to database
- Dashboard menu missing
- How to remove wp panel for users
- Unable to upload image using the standard uploader in the WP admin (v4.3)
- Fixed layout for admin section
- How do I correctly transfer my site from one domain to another?
- Unable to get to the admin panel
- Where can I store common cross-site text (e.g. headings, titles etc.)
- get_current_screen and the WP_Screen class
- How to find a spam link?
- How to change all “Post” texts in dahboard into “Article”?
- How to modify admin headers
- Filter WooCommerce Orders
- Directly editing content on webpage, is it possible?
- How to disable Media Library uploads for non-Admin users?
- Page can’t hand request – HTTP ERROR 500 – when updating something
- Admin user lacks admin permissions after hack and can’t reinstate
- How to change the User name and Password of admin account
- Redirect public site to another one but allow administrators to access the old site
- “sufficient permissions” error for admin after duplicating WP database to new install
- Display an image of selected template in admin to aid user when using complex templates
- Passing state from child component to parent component in a Gutenberg Sidebar
- I can’t enter the control panel of my wordpress site after channing the URL to https://
- Admin user column sort by numeric meta key
- Can I retrieve Published changes when changes have been Saved but not Published in WordPress Semplice?
- Error 404 Display on otherlinks apart from homepage
- Sortable admin columns by 0.00 number
- Links in new menu don’t work
- WordPress Admin Thickbox: Remove Margins/Padding
- How to change the title attribute for the WP logo image on wp-login.php
- WordPress Admin Email
- WordPress “Hide WP” Gives Me Error After Admin Login [closed]
- site admin for subscribers
- Customise the add media pop-up to include rel attribute option
- WordPress gallery image link gives 404 when not logged in
- Custom Div with links on Admin Bar
- WordPress admin loads erratically “connection reset by peer”
- Remove “minor-publishing” div from Publish admin metabox
- How to fix broken admin Thickbox?
- Can’t access my wp admin: captcha images invisible, gives me error message
- Pull Random Images From Options Page [closed]
- You do not have permission to access this document on form submit
- CSS Styles specific to Admin Sidebar not loading
- Display notice in block editor after wp_insert_post_data hook