Passing key to add_query_arg function in wordpress
This is my edit link in the template file
$edit_link=add_query_arg( 'ser_edit', $post_id, $edit_link ) ;
This is my html code.
<a href="<?php print $edit_link;?>"><?php _e('Edit','wpestate');?></a>
When I change the first parameter in add_query_arg it works fine, but ser_edit is the correct parameter for this. But it displays blank page when I click edit link in html. I checked the console, no errors. Anyone have an idea?
It displays the correct URL in the browser, but displays a complete blank page. When I change the key parameter, it works fine. So how do you fix this problem?
0
source to share