I think that is a function of the theme, which will return that message under whatever conditions it defined. (Hard to say exactly what file of the theme, since you didn’t specify the theme name. But a search for that phrase should find the file.)
If I am correct, then you should (best practice) make a child theme, then copy the theme’s PHP file that displays that message into the child theme folder. Then edit the file in the child theme folder to change the part of the code that displays the message to a wp_redirect()
(see https://developer.wordpress.org/reference/functions/wp_redirect/ ) . Make sure you include the exit
command after the wp_direct()
.
Related Posts:
- URL redirect to home page issue in word press site
- Check IF is a “single product page” and Check the “role” for a Redirect
- How to redirect on particular page in wordpress? [closed]
- Change admin startpage to Pages-page?
- foreach error on false boolean from get_terms
- Where does the 404 redirection happen?
- Is it possible to set a page template on a dynamic home page (articles list)?
- Page template gives ‘Parse error: syntax error’ when used, but no error found!
- How to change redirect after moving a page to trash?
- Can’t change parent page
- Password Protected Page Not Displaying Content After Entering Password
- The entire content of my WordPress page has disappeared
- How to display thumbnail and excerpt of a page on homepage?
- Custom /page/2/ template (different from index.php)
- Is it possible to have a landing page based on the visitors location?
- How to redirect a page to subdomain?
- Slug is redirecting to 404
- Making a wordpress page the index on the site?
- How to change only the home page / front page url on wordpress
- Page not found error when adding text `2 = 2 ^ 1` to the page
- is_home() returns TRUE on page template
- If a page does not exist, include a different page?
- Created php page in wordpress – Error Page can not be reached
- How to redirect a page to another?
- Site url is not showing the home page
- How can I get the homepage from the loop?
- Page redirects to archive
- Unique page URL redirect to file_get_contents() at domain
- Change base URL of pages created by certain users
- Updated WordPress, now getting errors on site
- Suddenly forbidden 403 error on some pages
- My custom template page not loading content inside it?
- Redirect page to default subpage
- Special Character Appearing in my WordPress Pages Content
- Add a static page that links to homepage
- Can I change the “Home” text in the menu?
- Redirect /home to home.php
- Page access only from a specific page in wordpress website
- Parent page shows no child content
- Published pages missing
- logout redirect only from admin page
- WordPress page not taking precedence over server directory
- Folder wordpress page redirect
- How to rewrite a page url
- Displaying posts on homepage – Template Page
- redirect index.html inside folder to wordpress page of same name
- creating single page with 2 columns while theme is 3 column
- How should I set up a Tumblr blog at a WordPress Page?
- Limit the amount of main pages
- On the list of Pages, clicking to Edit a particular page redirects to the list of trash
- Different template parts when on different pages
- How to change default home link title?
- Static Home Page resets to Front Page
- Why my home page doesnt work?
- WordPress redirects to login page when I enter url.com/index.php
- How to detect if some page template has been selected
- Cannot use old slug – it just 301s to site home page
- WordPress slow pages/post, hangs and white text
- pagination does not work with query_posts. Help! [duplicate]
- How to display text of a page in home or custom page?
- How to set a default page for load first time?
- How do I create a page that displays the homepage?
- For some reason my posts are not showing up on my front page [closed]
- All pages duplicated like a mirror with critical errors
- Can’t create new pages in wordpress
- How to change the default location where new post gets stored?
- page title, parent tilte and grand parent title
- Manual excerpts for pages not working on Search
- Redirecting to home-page when saving any edited code
- Associate Page with User
- Limit the number of pages created by the paging
- One page – Multiple parents?
- How to re-order pages en-masse
- Creating custom page
- How to create a metabox that will list all my pages in a dropdown selector?
- Relative instead of absolute links in pages?
- Produce a plain page with only a message
- Page displays content from different query?
- Can’t locate a hidden private page
- how to display sidebar on pages in wordpress
- Extra Text in URL
- Show FormCraft form on page open [closed]
- Why last blog post excerpt is shown instead of meta description? [closed]
- Prevent non-admin to add/create new pages
- How do you implement a page template automatically being applied to a page?
- Show parent & child pages with featured image and hide the current page
- One author not showing in Author drop down list while editing page
- WordPress Page Protect forwards to Admin Login
- How can I edit pages from my local environment?
- Send e-mail from admin area to adresses in custom field
- How to exclude sidebar from pages?
- Widget & storing a Select box choice
- Using Page/Post Slug In Link / URL
- How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount
- My homepage is gone but header is still there
- Add tags to long page that is broken up into subpages?
- page title showing twice [closed]
- How to setup an automatic redirect for when there has been a critical error on the site?
- How to add page category slug to base url
- Need pages with same names in multiple subdirectories