Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter missdna

    (@missdna)

    Thank you for your help 🙂

    Thread Starter missdna

    (@missdna)

    Hi , mheltone

    Thank you so much for taking the time to help me. But it there are some errors on the front page and on singel – on all articles.

    this is the link

    I only wanted the top article (The real truth) to have no post info on both front page and single, but the others will have. “The real truth”post was made sticky.

    Thread Starter missdna

    (@missdna)

    INdex.php

    [dito]

    Thread Starter missdna

    (@missdna)

    Single.php

    [code moderated as per forum rules - please use the pastebin]

    Thread Starter missdna

    (@missdna)

    this is the link, by the way http://dnamedia.info/testsite2/

    Thread Starter missdna

    (@missdna)

    wow, that was a fast reply! 🙂
    looks like this is harder than I thought. so far, I’ve only managed to edit minor changes (fonts, colors,background)…. please bear with me…

    I am using daily Edition theme from Woo themes, and it has it’s own options for the size of the thumbnail, and i was told that if I want to put the image on left, i should insert this code in the custom.css
    .post-inner .woo-image {
    float: left;
    margin-right: 20px;
    }
    but of course that will just make ALL posts with images on the left. they don’t cover the part where I can alternate them.

    So I’m looking at the code you provided. In “/*show the post with thumb on top */” and “/*show the post with thumb on left */”, what should I replace it with? Are there other files I should be changing also?

    I’m sorry if they’re idiotic questions…

    I have this code in my template index:
    <?php get_header(); ?>

    <div class=”col1″>

    <?php
    if (get_option(‘woo_show_carousel’) == ‘true’ AND !is_paged()) { include (TEMPLATEPATH . “/includes/featured.php”);}
    ?>

    <?php
    if (is_paged()) $is_paged = true;

    $shownslides = get_option(‘woo_shown_slides’);
    if(empty($showslides) || get_option(‘woo_show_carousel’) == ‘false’){
    $showslides = array();
    }

    $showvideo = get_option(‘woo_show_video’);
    $vidtags = get_option(‘woo_video_tags’);
    if(!empty($vidtags)) {
    $vidtags_array = explode(‘,’,$vidtags);
    } else {
    $vidtags_array = array();
    }

    global $wpdb;
    foreach ($vidtags_array as $tag_name){
    $tag_name = trim($tag_name);
    $tagid = $wpdb->get_var(“SELECT term_ID FROM $wpdb->terms WHERE name=’$tag_name'”);
    $tagids[] = $tagid;
    }
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $args = array(
    ‘post__not_in’ => $shownslides,
    ‘tag__not_in’ => $tagids,
    ‘paged’=> $paged
    );
    query_posts($args);

    $home_content = get_option(‘woo_home_content’);
    $home_boxes = get_option(‘woo_home_boxes’);

    if (have_posts()) :

    $full = FALSE;

    $width = get_option(‘woo_full_thumb_width’);
    $height = get_option(‘woo_full_thumb_height’);

    if( $home_boxes == ‘On’) { $small = TRUE; }
    elseif ($home_boxes == ‘Off’) { $full = TRUE; }
    else { $large_posts = intval($home_boxes); }

    $counter = 0;
    while (have_posts()) : the_post();
    $counter++;
    $post_class = ‘full’;
    if( ($counter > $large_posts OR $small == TRUE) AND $full == FALSE)
    {
    $width = get_option(‘woo_boxed_thumb_width’);
    $height = get_option(‘woo_boxed_thumb_height’);
    if( $small == FALSE ) $counter = 1;
    $small = true;
    if ($counter%2 == 0 ) { $post_class = ‘fr’; }
    else { $post_class = ‘fl’; }
    }

    ?>
    <div class=”post-outer post <?php echo $post_class; ?>”>

    <div class=”post-inner post-alt”>

    <?php woo_get_image(‘image’,$width,$height); ?>

    <p class=”category-head cufon”><?php the_category(‘, ‘) ?></p>
    <h2><?php the_title(); ?>” href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></h2>
    <p class=”title-meta”><span class=”comments-head”><?php comments_popup_link(__(‘0 Comments’,woothemes), __(‘1 Comment’,woothemes), __(‘% Comments’,woothemes)); ?></span> <span class=”date”><?php the_time(‘d F Y’); ?></span></p>

    <?php if ($home_content == ‘false’) { ?>
    <p><?php echo strip_tags(get_the_excerpt(), ‘‘); ?></p>
    <?php the_title(); ?>” href=”<?php the_permalink() ?>”><?php _e(‘Continue Reading’,woothemes); ?>
    <?php } else { ?>
    <?php the_content(__(‘Continue Reading’,woothemes)); ?>
    <?php } ?>

    </div><!–/post-inner–>
    </div><!–/post–>

    <?php if ($counter%2 == 0 AND $small == TRUE ) { echo ‘<div style=”clear:both;”></div>’; } ?>

    <?php endwhile; ?>
    <?php endif; ?>

    <div class=”more_entries”>
    <?php if (function_exists(‘wp_pagenavi’)) wp_pagenavi(); else { ?>
    <div class=”fl”><?php previous_posts_link(__(‘« Newer Entries ‘,woothemes)) ?></div>
    <div class=”fr”><?php next_posts_link(__(‘ Older Entries »’,woothemes)) ?></div>
    <br class=”fix” />
    <?php } ?>
    </div>

    <div class=”fix”></div>

    <?php
    if (get_option(‘woo_show_video’) == ‘true’) { include (TEMPLATEPATH . “/includes/video.php”);}
    ?>

    <?php
    if (get_option(‘woo_show_talking_points’) == ‘true’) { include (TEMPLATEPATH . “/includes/talking-points.php”);}
    ?>

    </div><!–/col1–>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Viewing 6 replies - 1 through 6 (of 6 total)