As dori sa exclud postul pe care il vizitez din lista de featured posts. Codul e urmatorul:
In momentul asta, daca vizitez postul x, in related posts imi este afisat inclusiv postul x.Cod:<div id="thumbs"> <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=6&cat='.get_option('fslider').'&offset=0'); ?> <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?> </div>
M-am jucat cu valorile (showposts / offset) insa nu am gasit nici o varianta care sa exluda postul din lista.
De fapt poti face sa se decaleze posturile astfel incat pentru ultimele posturi, de exemplu, sa nu se afiseze in cele related. Daca ma duc in urma cu n posturi, unde n = offset=valoare, postul este afisat.
Ceva idei ?![]()



