Plugin Directory

PostRank

Template Tags

This plugin offers several custom theme template tags, so you can integrate PostRanks into your WordPress theme. They can all be called from within The Loop, or you can pass them a specific post id. There are currently three template tags:

the_postrank_badge(post_id)

This template tag displays a nicely formatted PostRank badge.

Example: <?php the_postrank_badge(); ?>

the_postrank(post_id)

This template tag displays the numerical PostRank of a post. Since it only displays a number, you can format it to your liking.

Example: <?php the_postrank(); ?>

the_postrank_color(post_id)

This template tag displays the CSS color code for the PostRank of a post. It displays a string like 'ffe08e'.

Example: <div style="background-color:#<?php the_postrank_color(); ?>;">

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(6 ratings)