WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Rollover with loop query_posts. (3 posts)

  1. m.altieri
    Member
    Posted 4 years ago #

    Hello,

    I am working on a drop down menu with rollovers that gives me a very annoying problem. The menu is done with lists < li > and < ul >. Then, introducing the label < li > in the loop, everything is active in the rollover.

    Here's the code

    <li>
    <ul>
    <?php query_posts('cat=3&showposts=10'); ?>
      <li><?php while (have_posts()) : the_post(); ?>
       <a href="<?php the_permalink();?>"><?php the_title(); ?></a>
      <?php endwhile;?>
    
    </li>
    </ul>

    And here's the URL in what I'm working.
    http://laboratoire-sisvita-swiss.com.mialias.net
    The problem is in the category Productos (Products)

    Thank you!

  2. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    if i understood what you want, you could try and move the <li> into the loop - like so:

    <li>
    <ul>
    <?php query_posts('cat=3&showposts=10'); ?>
      <?php while (have_posts()) : the_post(); ?>
       <li><a href="<?php the_permalink();?>"><?php the_title(); ?></a></li>
      <?php endwhile;?>
    
    </ul>
  3. m.altieri
    Member
    Posted 4 years ago #

    Oh, you're right... How silly I was.
    Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic