Template tags in wordpress

Support Forums Programming and Development WordPress Template tags in wordpress


This topic contains 1 reply, has 2 voices, and was last updated by  Jeanne 5 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1187

    john kennedy

    What are template tags in wordpress?



    Dear Jhon,

    A template tag is code that instructs WordPress to “do” or “get” something. Like in header.php we will use the
    tag bloginfo(‘name’) to get “Site Title” from wp-options table which is set in Setting > General at WordPress dashboard.

    The the_title() template tag is used to display the post title.

    wp_list_cats() is for display categories.

    get_header() for getting header.

    get_sidebar() for display the sidebar on page.

    get_footer() for get the footer content on page.

Viewing 2 posts - 1 through 2 (of 2 total)

You must Login/Register to reply to this topic.