Get_permalink issue with Get Recent Comments plugin.
-
I’ve got an installation of WordPress running through Yahoo Hosting. Since Yahoo doesn’t allow its customers to edit the .htaccess files (boo!), I’ve had to employ a workaround in which I change the blog address in the WP options to include index.php. This make all of my permalinks look something like this :
https://www.blahblahblah.com/index.php/about/
Kinda lame, but it works. The issue I’m having, however, is that while this seems to fix 90% of the links within the site, the links generated by the Get Recent Comments plugin are still broken. I started digging through the plugin source code hoping to find an easy way to fix it, but it seems like the critical function from the plugin is here :
$post_link = get_permalink($comment->comment_post_ID);
For some reason, the URLs generated by this aren’t including the /index.php/. I’ve tried adjusting the WP options to include and remove a trailing slash, but neither seems to work. My guess is that the majority of the sites other internal links are generated within “The Loop” and are done using the the_permalink() function, unfortunately, that function won’t work for the recent comments.
So, is there any way to make this work? Is there another permalink function I can swap out? Or is there a fix for this somewhere that I can try?
Thanks.
- The topic ‘Get_permalink issue with Get Recent Comments plugin.’ is closed to new replies.