Wordpress. Create theme. Comments and comment form output

Home » Tutorials » CMS » WordPress. Create theme. Comments and comment form output

In this screencast we will output comments and comment form in post template. First of all we need to create template for site pages and for blog posts.

For list comment output we will use get_comments() wp function. This function returns list comments object, which contains all need data – avatar, comment author, his email, comment text and so on.
For comments form output comments_form() is used. You can pass settings param to this function. In setting you can remove URL field, for example and much more.

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This