Viewing 1 replies (of 1 total)
  • Thread Starter mscantbwrong

    (@mscantbwrong)

    <div class="catlist">
    <div class="catthumbnail">
    <?php
    $query = "SELECT * FROM $tablepost2cat WHERE category_id = '$category->cat_ID' LIMIT 0,1";
    $result = $wpdb->get_row($query);
    //print_r($result);
    $query = "SELECT * FROM $tableposts WHERE ID = '$result->post_id'";
    $result = $wpdb->get_row($query);
    //print_r($result);
    //echo $result->post_excerpt;
    ?>
    " rel="bookmark" title="Permanent Link: <?php stripslashes($result->post_title); ?>"><?php echo $result->post_excerpt; ?>
    </div>
    <h3 class="cattitle" id="post-<?php echo $category->cat_ID; ?>"><?php echo $newlink ?></h3>
    <div class="catdescription">
    <?php echo $category->category_description ?>
    </div>
    <div class = "albummeta">
    <?php $num_pictures = $wpdb->get_var("SELECT COUNT(post_id) FROM $tablepost2cat WHERE category_id = $category->cat_ID");
    echo "This album has ".$num_pictures." pictures"; ?>
    </div>
    </div>
    <?php } // End for foreach category
    $query = "
    SELECT cat_ID
    FROM $tablecategories
    WHERE cat_ID > 0";
    $query .= " LIMIT ".$catpage.",".($catpage + $posts_per_page);
    $results = $wpdb->get_results($query);
    echo "<div style=\"clear:both; text-align: right; padding-top: 15px\">";
    if (($catpage-$posts_per_page) > 0) { ?>
    /albums.php?catpage=<?php echo ($catpage-(2*$posts_per_page)); ?>"><< Previous Albums | 
    <?php }
    if (isset($results)) { ?>
    /albums.php?catpage=<?php echo $catpage; ?>">Next Albums >>
    </div>

    I did a view source on the albums.php page and it looks like the messed up coding is within the h3 tag……

Viewing 1 replies (of 1 total)

The topic ‘Where to correct links?’ is closed to new replies.