What is a Template Tag? How to use Template Tags in WordPress
It is far easier to create one header.php file and have all of your theme templates like single.php, page.php, front-page.php, etc. reference that one theme file using get_header() than copying and pasting the code into each theme file. It also makes maintenance easier. Whenever you make a change in your header.php file, the change is automatically carried over into all of your other theme files.
So, if you want to make the Tag whose ID number is 6 look different from what it is currently (and different from other Tag pages), you would want to create a tag-slug.php file. If you want to make all Tag pages look different from other archive pages (such as date and author archives), then you would want to create or modify the tag.php file. If you want to make changes to the look of all archive pages, you can create or modify the archive.php file. And if you modify the index.php file, you will affect your entire blog.
First, install and activate WordPress.com Stat in Jetpack. And make sure that you have connected Jetpack to WordPress.com. The reason we use WordPress.com Stat is that the View data will be stored in WordPress.com rather than in our own database. This could save on our server load.
more https://codex.wordpress.org/Stepping Into Template Tags
The indented list with "About WordPress", "About Writing", and "About Story Telling" are the children or sub-Categories of the parent Category "Things I Want To Share". These titles, by default, are not the actual titles of the Categories, they are the descriptions of the Category you set in the Administration > Manage > Categories panel.
I assumed to chose the divs-only template would require <?php echo login_with_ajax("template => 'divs-only'"); ?> However, this doesn’t work. Would you please provide an example?
How to Use the List Pages Template Tag in WordPress
The entire string is surrounded by single quotation marks, and no white space is within the query string. Each parameter is joined to its value by the = character. When you use multiple parameters/values, you separate them with the & character. You can think of the string like this: parameter1=valueANDparameter2=valueANDparameter3=value.
Templates are the files which control how your WordPress site will be displayed on the Web. These files draw information from your WordPress MySQL database and generate the HTML code which is sent to the web browser. Through its powerful Theme system, WordPress allows you to define as few or as many Templates as you like all under one Theme. Each of these Template files can be configured for use under specific situations. More information on creating Themes can be found at Theme Development.
In this video from the "Introduction to WordPress Theme Development" class, Topher introduces template tags, shows the documentation available, and provides several examples from a theme.