1
vote
1answer
30 views

Logout and redirect using the WP Menu

I have a navigation hyperlink in my secondary menu, that will allow the user to logout: However, the user is prompted with the following screen for confirmation, when clicking on the hyperlink in ...
0
votes
1answer
99 views

How to redirect users to custom lostpassword page?

How to redirect users to custom lostpassword page when they click on the Error: Lost your password?. Because I set a redirect for wp-login.php to my custom login page. when a user click on Error: Lost ...
0
votes
2answers
186 views

How to redirect non-logged in users to a specific page?

How to redirect non-logged users requesting for a specific page/URL to another page/URL and display a message like "for members only". I know its quite easy to code using !is_user_logged_in() ...
0
votes
1answer
104 views

how redirect users to custom login page when “login to reply” is clicked? [duplicate]

I am building my website on Wordpress and I have created my custom login page.But for a post when an user comments and other nonlogged see the comment with along with a line down "Login to reply".And ...
0
votes
2answers
411 views

redirect wp-login.php to another page

I would like to redirect this page wp-login.php to /login page. So when a user clicks on a link like this <a href="/wp-login.php">login</a>, wordpress will redirect him to /register . I ...
0
votes
1answer
59 views

Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?

My site's url is set up to include www in settings -> general. I also put it at the very top of my functions.php: update_option('siteurl','http://www.federal-lawyer.com'); ...
0
votes
0answers
38 views

How to request login for user but not for bots

I wondering, how to not requesting bots like google crawler or bing crawlers to login since they can crawl my post info, but require user to login if they want to see the posts? I already know how to ...
0
votes
1answer
49 views

Redirect depending on category chosen

I'm using Ninja Forms and their extension to do front-end posts. They have a function that isn't working that is supposed to allow you to redirect to a specific "thank you" page depending on values ...
0
votes
0answers
83 views

Registration Fail Redirect Problem

We use two registration links allowing users to register for different roles: /wp-login.php?action=register&utype=subscriber /wp-login.php?action=register&utype=contributer The subscriber ...
3
votes
1answer
365 views

Logout/login redirect CSS issue

I'm using WordPress Multisite. When I use wp_logout_url(), I get redirected to the login page but somehow I end at a different login page without any styles applied <a href="<?php echo ...
3
votes
1answer
712 views

Masking logout URL

The primary goal is to hide that the site is driven by wordpress. I've got the login part all locked up, but the logout URL still has those blasted wp delineators that give away it's a wordpress site. ...
0
votes
1answer
81 views

Incorrect redirect after commenting

I noticed not too long ago that after posting a comment the user is redirected to a page with this url ...
0
votes
1answer
159 views

template_redirect action only firing if logged in

add_action('template_redirect', 'add_header_redirect', 0, 0); function add_header_redirect(){ if( is_page(array(8, 'testimonials', 'Testimonials')) ){ $default_testimonial = get_permalink( ...
1
vote
1answer
514 views

Custom Taxonomy Permalinks Redirection

I have set up a custom taxonomy on a custom post type using the following: (For the sake of example, the custom post type is called newtype and the new taxonomy is just called newtax. // Create ...
2
votes
2answers
882 views

wordpress custom login successful redirect hook

I am using a custom login form imported on my theme's home page through jqModal. In that, when i successfully login it redirects to the same page. I want to redirect based on the logged in user role. ...
0
votes
2answers
981 views

How do I redirect upon login a specific user based on role?

I'd like to force a user to a specific page upon login based on their role using if ( current_user_can('contributor') ) and the main login function function wp_loginout($redirect = '', $echo = ...
0
votes
1answer
941 views

WP insert post Redirect after function has executed

After using a function to submit custom fields the standard redirection is not longer working. What we would like is that after the post has been insetered for the user to be redirected the standard ...
1
vote
2answers
434 views

How to let a single post have its own domain name

I am not sure which solution here would work best as a solution but what I am looking for is just a simple way to enter an optional domain through a metabox on the page edit screen and then just ...