Calling a plugin from a page template in TwentyEleven

Call the method in the class in your template file

WPRandomPosts::GetWPRandomPosts($cat_ID, $col, $UseExcerpt, $beforetitle, $aftertitle, $beforecite, $aftercite);

Give the params in the function for ypur custom output.

  • $col is Number of entries
  • $UseExcerpt is for Display a quote
  • $beforetitle is the Tag before heading out on
  • $aftertitle is the Tag after the header record
  • $beforecite is the Tag to quote on
  • $aftercite is the Tag after a quotation on

like:

WPRandomPosts::GetWPRandomPosts( '', 5, TRUE, '<h3>', '<h3>', '<p>', '</p>' );