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.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Pin It on Pinterest

Share This