New Zenner
- Join Date:
- Sep 2007
- Posts:
- 21
- Plugin Contributions:
- 1
'wordpress on zencart' contribution creates unusable links
i haven't had the time to test if it only occurs with tags, but the tag links (under posts) were not working for me at all, e.g.
they would be like
<a href="http://examplesite.tld/index.php?mainpage=wordpress/&p=tag/exampletag
instead of a working link like
<a href="http://examplesite.tld/index.php?mainpage=wordpress/&tag=exampletag
i know the function that fails to make the link properly, though i'm sure it's not the function itself, it seems to be because $wp_rewrite->tag_structure is not set properly.
the temporary workaround i did was edit /wp-includes/rewrite.php at line 445
//old
function get_tag_permastruct() {
if (isset($this->tag_structure)) {
//new
function get_tag_permastruct() {
//dodgy hack for tags in WoZ because i don't know how else to fix it :(
return '/&tag=%tag%';
if (isset($this->tag_structure)) {
because i don't know where/when $wp_rewrite->tag_structure should be set. this fixed the broken links for me, hope this helps others with the same problem!