I'm currently adapting WP for use in managing a corporate website like a CMS. The blog-like functionality will be used to post company news. However, I've set it up so that there won't be any way to access individual posts so the news will only exist as a listing or news archive. At the same time, I want the X most recent posts to appear as excerpts on the front page of this website.
My dilemma is that I want to link excerpts on the front page to posts in the news section but if I use permalinks, it will open up individual posts rather than just jump to a post in an archive. My solution is to provide a link to an archive with a # anchor.
So I want an excerpt on the front page with the title "Stocks are up" to generate a "read more >>" link that points to /2004/12/#stocks-are-up. That URL+anchor will open up a Dec 2004 archive and jump to the full news post. To do that, I need a way to get the sanitized title (with hyphens) to form the anchor in the link.
I've taken a look at the the_permalink function code but it seems to use a SQL query to retrieve the title and I don't know how to work with that within WP.