Plugin Author
Paolo
(@paoltaia)
Hi BackuPs,
because we are dealing with locations and their names are added to the URL, GeoDirectory needs permalink to be something different than the default wordpress permalinks, or it will not work.
We recommend /%postname%/
Thank you
hi
That is not waht i am saying. My permalinks are /%category%/%postname%
But every time i turn your plugin on and off i have to resave the permalinks as your category pages and single post items throw a 404. My own don’t only yours.
no other custom posttype plugin has that issue.
Moreover please consider renaming your widget container names so they are not in the top above default theme container ones. This is very annoying.
Thank you
Plugin Author
Paolo
(@paoltaia)
Ok, I think I got what you mean. we are looking into it and we will report asap.
Thanks
Plugin Author
Stiofan
(@stiofansisland)
Hi BackuPs,
I have tested this but i can’t recreate on any of my test servers however if you add this line to your child theme functions file it should flush them on activation which hopefully should solve your problem (but it might be a plugin conflict or something)
Let us know if it works or not and we can add it to core if it does.
add_action("geodir_installation_end", "flush_rewrite_rules",10);
Thanks,
Stiofan
Hi
Nope that did not solve the issue. The only other plugin running is woocommerce.
I activate your plugin goto the backend category and click view…. and i get a 404. After resaving the permalinks it views fine on reloading the page.
Hi
i think it should be something like this
function geodirectory_rewrite_rules(){
if( get_option("geodirectory_rewrite_rules") == "" ){
add_action('init', 'flush_rewrite_rules');
update_option("geodirectory_rewrite_rules","flushed");
}
}
add_action('init','geodirectory_rewrite_rules', 1 );
But since i dont know if there ia a function for this
get_option(“geodirectory_rewrite_rules”)
i cant complete this code.
Best regards,
Plugin Author
Stiofan
(@stiofansisland)
Hi again,
I installed woocomerce to try and recreate this but i can’t.
I could ask you to explain all your setting for me to try and recreate or you could register on our support forums where you can privately send us info to be able to look over your setting?
This problem has not been reported before but i will help you get to the bottom of it if i can recreate it or see it in action 🙂
Our support forum is here: http://wpgeodirectory.com/support/
Thanks,
Stiofan