WordPress V2.xTemplate Tag Reference Guide as of Version 2.x
Presented by:
Permalink Tags
Permalink Anchorpermalink_anchor();
Outputs a permalink anchor identifier or id (<a id="....) for a post.
<?php permalink_anchor('type'); ?>
type
Type of anchor to output.
<?php permalink_anchor('type=title'); ?>
id
title
Permalink (PHP)get_permalink();
Returns the permalink to a post for use in PHP. It does NOT display the permalink and can be used outside of The Loop.
<?php get_permalink(id); ?>
id
The numeric ID for a post. When this tag is used in The Loop without an id parameter value, tag defaults to the current post ID.
<?php get_permalink(17); ?>
Integer
Permalink URLthe_permalink();
Displays the URL for the permalink to the post currently being processed in The Loop. This tag must be within The Loop, and is generally used to display the permalink for each post, when the posts are being displayed.
<?php the_permalink(); ?>
No Parameters
Permalink (formatted for syndication feeds)permalink_single_rss();
Displays the URL for the permalink to the post currently being processed in The Loop. This tag must be within The Loop, and is generally used to display the permalink for each post, when the posts are being displayed.
<?php permalink_single_rss('file'); ?>
file
The page the link should point to. Defaults to the current page.
<?php permalink_single_rss('index.php'); ?>
String