aniketnt
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: After ajax login the new nonce field is not returnedHi,
I got the solution after adding the below code in function.php it works
function my_update_cookie( $logged_in_cookie ){
$_COOKIE[LOGGED_IN_COOKIE] = $logged_in_cookie;
}
add_action( ‘set_logged_in_cookie’, ‘my_update_cookie’ );Forum: Developing with WordPress
In reply to: After ajax login the new nonce field is not returnedhi bcworkz,
Thanks fr your reply but my question is different, what i am facing issue is when i use login using wp_signon but i am achieving this using ajax now what i notice after login via wp_signon i request the new wp_nonce which must be different from the anonymous use code but wp_nonce_field return the old token that must be different after login so how can i achieve this if i am login using ajax and wp_signon i need to return a new wp_nnonce at the same time that must be a token after user login.
hi Takayuki thanks for your reply, i just want to know where to use this method..?
Forum: Fixing WordPress
In reply to: How to write the custom post type permalinkpost type is one that i have created like if i create a post type as blog and a custom taxonomy something that can be generated randomly e.g planes, data, traffic and there will be post for each category now what i want the permalink like
for single post
http://www.example.com/blog/planes/post-titlefor category page
http://www.example.com/blog/planes/for archive like this
http://www.example.com/blog/archive/2015