Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Wordpress.org archive problem

  • 21-04-2009 3:48pm
    #1
    Registered Users, Registered Users 2 Posts: 8,145 ✭✭✭


    Hi,
    My photo blog has a problem with the archive- if I hover over an image it isn't clickable to open that page (where the image is) but if I hover on the grey box around the image it works...
    I've logged a mesasge in WP.org but (fustratinlgy) haven't received an answer, anyone able to help?


    Thanks,
    Pa
    Here is some of the code-
    From actual site archive page
    <li id="post-319">
    <a href="http://patrick.dinneen.com/they-only-come-out-at-night-2/&quot; title="Link to They only come out at night"><div class="image thumbnail"><img src="http://patrick.dinneen.com/wp-content/uploads/2009/04/p1010116.jpg?w=125&quot; alt="They only come out at night" title="p1010116" class="size-full wp-image-320" /></div></a>
    </li>

    and here from the archive.php file-

    <?php get_header(); rewind_posts(); ?>
    <div class="archive">

    <ul id="filters">
    <li>Filter by:</li>
    <li>
    <select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
    <option value=""><?php echo attribute_escape(__('Select Month')); ?></option>
    <?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
    </li>
    <li>
    <?php wp_dropdown_categories('show_option_none=Select Category'); ?>

    <script type="text/javascript"><!--
    var dropdown = document.getElementById("cat");
    function onCatChange() {
    if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
    location.href = "<?php echo get_option('home');
    ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
    }
    }
    dropdown.onchange = onCatChange;
    --></script>
    </li>
    </ul>

    <?php
    query_posts($query_string.'&posts_per_page=24');
    if (have_posts()) : ?>

    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2>Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>
    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    <h2>Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2>Archive for <?php the_time('F jS, Y'); ?></h2>
    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2>Archive for <?php the_time('F, Y'); ?></h2>
    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2>Archive for <?php the_time('Y'); ?></h2>
    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2>Author Archive</h2>
    <?php /* If this is a paged archive */ } elseif (isset($_GET) && !empty($_GET)) { ?>
    <h2>Blog Archives</h2>
    <?php } ?>


    <div class="nav">
    <div class="prev"><?php next_posts_link('« Older Entries') ?></div>
    <div class="next"><?php previous_posts_link('Newer Entries »') ?></div>
    </div>
    <ul class="thumbnails">
    <?php while (have_posts()) : the_post(); ?>

    <li id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" title="Link to <?php the_title_attribute(); ?>"><?php the_thumbnail(); ?></a>
    </li>

    <?php endwhile; ?>
    </ul>
    <div class="nav">
    <div class="prev"><?php next_posts_link('« Older Entries') ?></div>
    <div class="next"><?php previous_posts_link('Newer Entries »') ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <?php endif; ?>
    </div>

    <?php get_footer(); ?>


Comments

  • Closed Accounts Posts: 196 ✭✭dreamlogic


    Just a couple of suggestions:
    - Delete the <div> from the archive page code (or place it outside of the <a> tags)
    - Try removing the "?w=125" from the end of the source url.


Advertisement