Template Tag Reference - AgriLife/AgriFlex GitHub Wiki
Displays navigation to next/previous pages/posts when applicable. Works on single entries and loops.
$nav_id allows for custom <div> ids.
Usage:
agriflex_content_nav( 'nav_below' );
Echos the current post title wrapped in a header and anchor tag. The tags can be customized.
H3 header with anchor tag:
agriflex_post_title( 'h3' );
Result:
<h3 class="entry-title">
<a href="http://link-to-post.com" title="Permalink to The Post" rel="bookmark">
The Post
</a>
</h3>
H1 header without anchor tag (useful for single posts):
agriflex_post_title( 'h1', FALSE );
Result:
<h1 class="entry-title">
The Post
</h1>
Retrieves the current post's thumbnail. Returns a default thumbnail if one isn't available.
Custom sizes:
-
featured965x475 -
featured-2585x305 -
featured-mediabox175x124
Determines the title to display on the current archive page. Contains logic for dates, author, category, tag, and default archives. Wraps the title in an h1 tag.
Prints the markup with post meta information for the current post date/time and author.
Prints the markup with meta information for the current post( category, tags and permalink).
Displays the current post's author image, bio and contact information.
Displays the current post's comment navigation if comments are available.
$nav_id creates a custom <div> ID for CSS styling.
Displays the comments link in the loop
Displays the post edit link for logged-in users.
Template for comments and pingbacks.