WordPress.org

Ready to get started?Download WordPress

Forums

need thumbnail to link to category, not a post. (1 post)

  1. adrock5150
    Member
    Posted 4 years ago #

    Hello,

    I am using the Arras theme, which creates thumbnails for links to featured posts. I need this link changed to link to the categories that contain these posts (stickied posts = featured posts). My site is http://www.hookah-information.com.

    The code for the link in home.php is;

    ----------------------------------------
    <!-- Featured Articles #2 -->
    <?php if (!$paged) : if ( ($featured2_cat = arras_get_option('featured_cat2') ) !== '' && $featured2_cat != '-1' ) : ?>
    <?php
    if ($featured2_cat == '-5') $query2 = array('post__in' => get_option('sticky_posts'), 'showposts' => arras_get_option('featured2_count') );
    elseif ($featured2_cat == '0') $query2 = 'showposts=' . arras_get_option('featured2_count');
    else $query2 = 'showposts=' . arras_get_option('featured2_count') . '&cat=' . $featured2_cat;

    $q2 = new WP_Query( apply_filters('arras_featured2_query', $query2) );
    arras_get_posts('featured2', $q2);
    ?>
    <?php endif; endif; ?>
    -------------------------------------

    Any help i figuring this out would be greatly appreciated!!!

Topic Closed

This topic has been closed to new replies.

About this Topic