I had asked this question in a different way too, but no one replied there! I guess I should rephrase it here.
My custom post is 'company'.
I'm trying to add a custom rewrite rule. When the 'url http://domain..com/company/company-title-slug/replies', is accessed, I want redirect to a custom template(applied to a page named 'replies') with all the comments for this custom post listed. If I add the comment id in the url like this 'url http://domain..com/company/company-title-slug/replies/23', I want to redirect to another page with a custom template applied for displaying a single comment.
This is what I did for accessing the url... 'http://domain.com/replies/reply_id', and it works fine.
add_rewrite_rule('^replies/(.*)?$','index.php?pagename=replies&reply_id=$matches[1]','top');
Please guide me in the proper direction, having a real hard time with the url rewrite stuff!
Thanks in advance!
