All links are generated as site.com/directorytag/%post_tag%
First of all there should be a forward slash before tag and %post_tag% should become the actual tag no the short code.
All links are generated as site.com/directorytag/%post_tag%
First of all there should be a forward slash before tag and %post_tag% should become the actual tag no the short code.
Hey what i ended up doing was changing a couple lines in the automatic-tag-link.php .
i changed the following lines and it all works perfect.
on line 72
change this :
}else $structure=get_option('siteurl').$ss;
to this
}else $structure=get_option('siteurl').'/'.$ss;
and then to fix the %post_tags%
And i changed this on line 93
$structure=str_replace('%tag%',$value->slug,$temp);
to
$structure=str_replace('%post_tag%',$value->slug,$temp);
Works prefect...thanks daevisioninc!!
Yep, thank you daevisionic, works like a charms! I hope more people (and the author) can get to read it.
Regards,
hparra
It works.
Thank you
Besides daevisioninc's solution, please also use
home_url()
instead of the
get_option('siteurl')
The get_option('siteurl') refers to the WordPress folder, and in case the blog's address is different from the WordPress folder, this causes problems.
@sammychen: Please fix these issues and release a new version of this plugin.
This topic has been closed to new replies.