File Name | Description |
---|---|
style.css | style sheet file |
index.php | home page file |
header.php | header content file |
single.php | single post page file |
archive.php | archive/category file |
searchform.php | search form file |
search.php | search content file |
404.php | error page file |
comments.php | comments template file |
footer.php | footer content file |
sidebar.php | sidebar content file |
page.php | single page file |
front-page.php | latest posts or static page |
tag.php | display tags in archive format |
category.php | display categories in archive format |
|
root url for website |
|
title of specific post/page |
|
title of site |
|
site description |
|
stylesheet folder location |
|
style.css file location |
|
pingback url |
|
template folder path |
|
wordpress blog version |
|
atom url |
|
rss2 url |
|
root url for website |
|
html version |
|
charset parameter |
Default Navigation Menu
<?php wp_nav_menu(); ?>
Specific Navigation Menu
<?php wp_nav_menu( array('menu' => 'Project Nav' )); ?>
Category Based Navigation
<ul id="menu">
<li <?php if(is_home()) { ?> class="current-cat" <?php } ?>>
<a href="<?php bloginfo('home'); ?>">Home</a>
</li>
<?php wp_list_categories('title_li=&orderby=id');?>
</ul>
Page Based Navigation
<ul id="menu">
<li <?php if(is_home()) { ?> class="current-page-item" <?php } ?>>
<a href="<?php bloginfo('home'); ?>">Home</a>
</li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
</ul>
Function | Description |
---|---|
|
content of posts/pages |
|
check if there are posts |
|
shows posts |
|
closes loop |
|
closes if |
|
header.php file contents |
|
sidebar.php file contents |
|
footer.php file contents |
|
the date is '08-18-07' |
|
link to comments of post |
|
title of post/page |
|
url of post/page |
|
category of post/page |
|
author of post/page |
|
id of post/page |
|
edit link of post/page |
|
links from blogroll |
|
comment.php file contents |
|
list all pages |
|
list all categories |
|
url to next post |
|
url to previous post |
|
show post calendar |
|
list of archive urls |
|
next and previous post link |
|
rewinds post for a second loop |
<?php if(have_posts()) { ?>
<?php the_post(); ?>
<?php // custom post content code for title, excerpt and featured image ?>
<?php } // end while ?>
<?php } // end if ?>
Function | Description |
---|---|
|
custom permalinks |
|
include file from template folder |
|
value returned from search from |
|
return translated text from translate() |
|
register link |
|
login/logout link |
|
divide content into pages |
|
cut off content and create link to full post |
|
admin meta data |
|
start page timer (header.php) |
|
time to load the page (footer.php) |
|
show queries executed to generate page |