Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kennedysgarage

    (@kennedysgarage)

    I found the line of code for <?php akpc_most_popular(); ?>, is on line 2220

    Thread Starter kennedysgarage

    (@kennedysgarage)

    The original code:

    function akpc_most_popular($limit = 10, $before = ‘

    • ‘, $after = ‘
    • ‘, $report = false, $echo = true) {
      global $akpc;
      if(!$report) {
      $akpc->show_top_ranked($limit, $before, $after);
      }
      else {
      return $akpc->show_report($report, $limit);
      }
      }

      I think this is what it need to look like, but i get an error.

      function akpc_most_popular($limit = 10, $before = ‘

    • ‘,$wpcategory ='<?php the_category(‘,’)?>’ $after = ‘
    • ‘, $report = false, $echo = true) {
      global $akpc;
      if(!$report) {
      $akpc->show_top_ranked($limit, $before, $wpcategory, $after);
      }
      else {
      return $akpc->show_report($report, $limit);
      }
      }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Popularity Contest] How to show Category after link?’ is closed to new replies.