In functions.php I am adding a rewrite rule for this url:
http://www.myblog.com/?currentpage=1
http://www.myblog.com/?currentpage=2
And so on...
This is the code I use, can u please give me the rewrite rules to transform my urls into pretty ones?
add_action( 'init', 'wpa5413_init' );
function wpa5413_init() {
// Remember to flush the rules once manually after you added this code!
add_rewrite_rule(
'Please add my rewrite rule',
'Please add my rewrite rule',
'top' );
}
add_filter('query_vars', 'wpa3537_query_vars');
function wpa3537_query_vars($query_vars) {
$query_vars[] = 'currentpage';
return $query_vars;
}
Ty!