Ver Mensaje Individual
  #12 (permalink)  
Antiguo 26/04/2010, 09:14
Avatar de Werlisa
Werlisa
 
Fecha de Ingreso: noviembre-2008
Mensajes: 286
Antigüedad: 15 años, 5 meses
Puntos: 28
Respuesta: Modificar Sticky

Desde el foro oficial de Wordpress me han sugerido esta forma de aplicar el codigo aunque no funciona y los post marcados como sticky continuan apareciendo anclados en la parte superior..

<?php
$i = 1;
if(!empty($_GET['sort']))
{
$orderby=trim($_GET['sort']);
$order=trim($_GET['order']);
$key=trim($_GET['key']);
// create the sort by injection
$posts = query_posts($query_string . '&orderby='.$orderby.'&meta_key='.$key.'&order='.$ order.'&caller_get_posts=1');
}
if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($i % 2 == 0) { $alt = " class=\"alt\""; } else { $alt = " class=\"no\""; } echo "<div" . $alt;
if (is_sticky()) { echo " id='sticky' "; } echo ">";
?>

Alguna idea?

Saludos!