Template Tag Reference - AgriLife/AgriFlex GitHub Wiki

agriflex_content_nav( $nav_id )

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' );

agriflex_post_title( $header = '', $anchor = TRUE );

Echos the current post title wrapped in a header and anchor tag. The tags can be customized.

Examples:

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>

agriflex_post_thumbnail( $size = 'featured-mediabox' )

Retrieves the current post's thumbnail. Returns a default thumbnail if one isn't available.

Custom sizes:

  • featured 965x475
  • featured-2 585x305
  • featured-mediabox 175x124

agriflex_archive_title()

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.

agriflex_posted_on()

Prints the markup with post meta information for the current post date/time and author.

agriflex_posted_in()

Prints the markup with meta information for the current post( category, tags and permalink).

agriflex_author_info()

Displays the current post's author image, bio and contact information.

agriflex_comment_nav( $nav_id )

Displays the current post's comment navigation if comments are available.

$nav_id creates a custom <div> ID for CSS styling.

agriflex_comments_link()

Displays the comments link in the loop

agriflex_edit_link()

Displays the post edit link for logged-in users.

agriflex_comment()

Template for comments and pingbacks.

⚠️ **GitHub.com Fallback** ⚠️