Template tags in wordpress

Support Forums Programming and Development WordPress Template tags in wordpress

Tagged: 

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

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

    john kennedy
    Participant

    What are template tags in wordpress?

    #1195

    Jeanne
    Keymaster

    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.