Plugins

Foro WordPress » WordPress » Plugins

Popularity Contest WP 2.7 (2 mensajes)

Acerca de este hilo

Tags

Etiquetas:

No hay tags todavía.

  1. Mauro

    3.0
    Antiguedad: Dic 2008
    Mensajes: 12

    offline

    Publicado hace 3 años
    #

    Hola,

    Después de una buena busqueda en google di con el plugin Popularity Contest listo para la versión 2.7 de WP.

    Lo pueden descargar aquí para los que dessen usar este plugin, lo instale y anda al 100% en la version 2.7: http://www.dyasonhat.com/wordpress-plugins/popularity-contest-plugin-wordpress-27-working-version/

    Tengo una consulta.

    Como puedo hacer para poder poner en el home los post mas populares del último mes, y en los post individuales los más populares de acuerdo a la categoria del post que se este leyendo.

    Este es el codigo para ver los más populares:

  2. <h2>Most Popular Posts</h2>
      <?php akpc_most_popular(); ?>
  3. Pero para ver los más populares por mes en el home y por categoria en un post individual alguna idea?

  • Kantabruco

    4.0
    Antiguedad: Ene 2009
    Mensajes: 71

    offline

    Publicado hace 3 años
    #

    Popularity Contest Template Tags
    akpc_the_popularity()
    Put this tag within The Loop to show the popularity of the post being shown. The popularity is shown as a percentage of your most popular post. For example, if the popularity total for Post #1 is 500 and your popular post has a total of 1000, this tag will show a value of 50%.

    Example:

    <?php akpc_the_popularity(); ?>
    akpc_most_popular($limit = 10, $before =

  • , $after =
  • )
    Put this tag outside of The Loop (perhaps in your sidebar?) to show a list (like the archives/categories/links list) of your most popular posts. All arguments are optional, the defaults are included in the example above.

    Examples:

    <?php akpc_most_popular(); ?>

  • <h2>Most Popular Posts</h2>
      <?php akpc_most_popular(); ?>
  • akpc_most_popular_in_cat($limit = 10, $before =

  • , $after =
  • , $cat_ID = current category)
    Put this tag outside of The Loop (perhaps in your sidebar?) to show a list of the most popular posts in a specific category. You may want to use this on category archive pages. All arguments are

    Examples:

    <?php akpc_most_popular_in_cat(1); ?>
    <php if (is_category()) { akpc_most_popular_in_cat(); } ?>
    <?php if (is_category()) { ?>

  • <h2>Most Popular in '<?php single_cat_title(); ?>'</h2>
      <?php akpc_most_popular_in_cat(); ?>
  • <?php } ?>
    akpc_most_popular_in_month($limit, $before, $after, $m = YYYYMM)
    Put this tag outside of The Loop (perhaps in your sidebar?) to show a list of the most popular posts in a specific month. You may want to use this on monthly archive pages.

    Examples:

    <?php akpc_most_popular_in_month('200504'); ?>
    <php if (is_archive() && is_month()) { akpc_most_popular_in_month(); } ?>
    <?php if (is_archive() && is_month()) { ?>

  • <h2>Most Popular in <?php the_time('F, Y'); ?></h2>
      <?php akpc_most_popular_in_month(); ?>
  • <?php } ?>

    Luchando.... salgo de Güatemala (WP) y me meto en Güatepeor (WPMU-Buddypress)

    Responder

    Debes Identificarte para publicar.

    Foro WordPress » WordPress » Plugins