Automating a public excerpt
Posted: October 27th, 2010, 2:28 pm
My client wants to protect entry pages, but for SEO etc. purposes wants to allow the post excerpt to appear publicly on the pages, with a prompt to login/register. So, when an unauthorized visitor tries to view the page, they'll see roughly:
We've found this prior forum post, but it's regarding specifying an excerpt manually every time, which I'd like to avoid.
Now, as far as I can tell, what I need is the Advanced Query Conditionals functions, and the examples in there seem obvious enough. I was thinking example #2, except instead of the continue statement, I'd actually echo out some content. But I've experimented a little, and no matter what I do, the page simply kicks me to the subscription options page rather than showing the sample content. Is there something I need to additionally disable, or am I going about this the entirely wrong way?
Introductory paragraph or whatever.
To see the rest of this post, please register or login.
We've found this prior forum post, but it's regarding specifying an excerpt manually every time, which I'd like to avoid.
Now, as far as I can tell, what I need is the Advanced Query Conditionals functions, and the examples in there seem obvious enough. I was thinking example #2, except instead of the continue statement, I'd actually echo out some content. But I've experimented a little, and no matter what I do, the page simply kicks me to the subscription options page rather than showing the sample content. Is there something I need to additionally disable, or am I going about this the entirely wrong way?