Hey there, I am sooo frustrated, asked and asked and can't seem to get an answer. Pleaseeeee help, I'll be very very clean whith my problem. I'll give hundreds of bears to the one who can help:)
I have a blog installed http://www.myblog.com - it's part of a network, I use wordpress multisite
I created a table called cars with 60 rows - it's not a wordpress table, it's my own custom table but I have created it inside the wordpress database.
On my blog theme, editing index.php, I display the records from the table cars, 10 rows per page and I write a custom pagination script with no relation what so ever with my wordpress pagination.
Now i have the following links:
www.myblog.com/index.php?currentpage=1
www.myblog.com/index.php?currentpage=2
and so on untill ...
www.myblog.com/index.php?currentpage=6How can I rewrite them to pretty goole friendly links?
Ideea one: since they are not actually related to the wordpress blog, should I edit htaccess? I believe wordpress .htacces rules override any custom rules i put there... if you know a solution please share...
Ideea two: Tried to use wordpress rules and edited functions.php like so, with no luck:
add_action( 'init', 'wpa5413_init' );
function wpa5413_init() {
add_rewrite_rule(
'^/\?currentpage/(\d*)$',
'index.php?currentpage=$matches[1]',
'top' );
}
add_filter('query_vars', 'wpa3537_query_vars');
function wpa3537_query_vars($query_vars) {
$query_vars[] = 'currentpage';
return $query_vars;
}
Please help me, honestly, I can even pay, I am soo frustraed... doing this work after my dayjob, it's been days of not sleeping, just need to make this happen, pleaseeeeeeeeeeeeeeeee
PS don't vote down my question, i see others are struggeling with similar issues