开发者

Wordpress: Problem adding comment functionality to a page

if anyone can figure this out, thanks a million!

I wanted to have my wp install at root level where the homepage displays excerpts of latest blogs but I still wanted the top navigation to point to a "blog" page www.mydomain.com/blog which displays the full latest blog (and allows comments).

I thought I was being clever by cre开发者_Go百科ating a new Page Template just for this blog page - I copy/pasted the single post code into this template and created a static page called blog using that template. My permalink structure ensures if would be found like so www.mydomain.com/blog.

It all works beautifully except no comments functionality - I tried googling and trying a few things but comments_template('', true) and variations at various points in the page didnt do the trick. Best I can do is: comments_popup_link('No Comments | Click to Comment', '1 Comment | Click to Comment', '% Comments | Click to Comment');

Please smart people, come to my rescue :)

Thanks!


Create a page and make it your front page.

Visit the Administration > Settings > Reading panel and under Front page displays, you can choose to set any (published) Page or Posts Page as the Front Page.

Create a page called 'blog', and choose this as your posts page in the reading panel.

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜