Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Forum: Plugins
    In reply to: randome posts at homepag
    Thread Starter DivMaster

    (@divmaster)

    thanks a lot that did the trick

    query_posts(‘paged=’.$paged.’&orderby=rand&cat=-‘.$option[‘showcase_cat’].’,-‘.$option[‘newsflash_cat’].’,-‘.$option[‘feature_cat’].’,-‘.$option[‘footer_cat’]); ?>

    πŸ™‚ thanks you <3

    Thread Starter DivMaster

    (@divmaster)

    can someone guide me please at least which file should i look this kind of code?

    Thread Starter DivMaster

    (@divmaster)

    thx for your quick support, as i was looking in my data i used to have a theme for a client this one http://www.elegantthemes.com/preview/eGallery/ , it also used same method of displaying posts on home page, i check the code and it is here

    <!--Begind recent post (single)-->
    <?php if (have_posts()) : while (have_posts()) : the_post();
      if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
    
    <?php
    // check for thumbnail
    $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true);
    // check for thumbnail class
    $thumb_class = get_post_meta($post->ID, 'Thumbnail Class', $single = true);
    // check for thumbnail alt text
    $thumb_alt = get_post_meta($post->ID, 'Thumbnail Alt', $single = true);
    ?>
    <div class="home-post-wrap">	
    
    <div onclick="document.location='<?php the_permalink() ?>';" class="thumbnail-div" style="background-image: url(<?php bloginfo('stylesheet_directory'); ?>/phpThumb/phpThumb.php?src=<?php echo $thumb; ?>&h=159&w=190&zc=1);">
    <div class="info">
    <span class="info-titles"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('', '...', true, '18') ?></a></span>
    <?php the_content_limit(140, ""); ?>
    </div>
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/slider-button.png" alt="more info" class="info-button" />
    </div>	
    
    <div class="bar">
    <div class="ratingbox">
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/delete.png" alt="delete" class="delete" />
    <div style="clear: both;"></div>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    </div>
    <a href="#" class="rating" style="float: left;" title="Click here to rate this post"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/star.gif" alt="rate this post" style="border: none;" /></a>
    <div class="comments-bubble"><?php comments_popup_link('0', '1', '% '); ?></div>
    <a href="#" class="rating" style="float: left; cursor: pointer; margin-left: 9px;" title="This Download was posted on: <?php the_time('m jS, Y') ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/date.gif" alt="date" style="border: none;" /></a>
    <a href="<?php the_permalink() ?>" style="float: right;" title="Click here to Download: <?php the_title2('', '...', true, '30') ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/read-more.gif" style="border: none;" alt="read more" /></a>
    </div>
    
    </div>
    
    <?php endwhile; ?>
    <!--end recent post (single)-->

    you think you can help me to give some advice or display a snippets πŸ™‚

    thx

    Thread Starter DivMaster

    (@divmaster)

    πŸ™‚ thx for support, i am actually learning about wordpress, as i said before i am a web designer and now learning php from few months, so i was thinking maybe something is available by wordpress for this kind of stuff , means any sort of this code which make posts like that. and not in the mood/position to invest something which i only wants to learn.

    Regards

    Thread Starter DivMaster

    (@divmaster)

    <!– Begin Blog Post –>

    <div <?php post_class(‘mc-wrapper’); ?> id=”post-<?php the_ID(); ?>”>
    <div class=”mc”>

    <?php $thumb = get_post_meta($post->ID, ‘thumb’, TRUE); ?>
    <?php if($thumb == ” && $option[‘catch_first_image’] == ‘true’) {

    $thumb = catch_that_image();

    if ($thumb != ”) { ?>

    <div class=”mc-img”>
    <img src=”<?php bloginfo(‘template_directory’); ?>/timthumb.php?src=<?php echo $thumb ?>&w=<?php echo $option[‘thumb_w’]; ?>&h=<?php echo $option[‘thumb_h’]; ?>&zc=1&q=<?php echo $option[‘timthumb_quality’]; ?>” alt=”<?php the_title(); ?>” />
    </div>

    <?php } ?>

    <?php } elseif ($thumb != ”) { ?>

    <div class=”mc-img”>
    <img src=”<?php bloginfo(‘template_directory’); ?>/timthumb.php?src=<?php echo $thumb ?>&w=<?php echo $option[‘thumb_w’]; ?>&h=<?php echo $option[‘thumb_h’]; ?>&zc=1&q=<?php echo $option[‘timthumb_quality’]; ?>” alt=”<?php the_title(); ?>” />
    </div>

    <?php } ?>

    <div class=”mc-text”>

    <div class=”mc-subheader”>
    <div class=”componentheading”>
    <span>“><?php the_title(); ?></span>
    </div>
    </div>

    <?php if($option[‘blog_post_meta’] == ‘true’) { ?>

    <div class=”mc-header”>
    <div class=”componentheading”>
    <div class=”blog-post-info”>
    <b><?php the_time(‘l, j F o’); ?></b> – <?php _re(‘Posted by’); ?> <?php the_author(); ?> <?php _re(‘in’); ?> <?php the_category(‘, ‘) ?>
    </div>
    </div>
    </div>

    <?php } ?>

    <div class=”mc-content”>
    <?php the_content(false); ?>
    </div>

    <?php if(preg_match(‘/<!–more(.*?)?–>/’, $post->post_content)) { ?>

    <div class=”readon-wrap1″>
    <div class=”readon1-l png”></div>
    ” class=”readon-main”><span class=”readon1-m png”><span class=”readon1-r png”><?php _re(‘More’); ?></span></span>
    </div>

    <?php } ?>

    <div class=”clr”></div>

    </div>
    </div>
    <div class=”roknewspager-div”> </div>
    </div>

    <!– End Blog Post –>`

    this is the original code for displaying posts in one row, i need to know how i can make it work to display in multi rows and coulmns.

    thx

    Thread Starter DivMaster

    (@divmaster)

    thanks i know that but i am after that plugin which make posts look a like that , i am working on my own theme so trying to figure out how that work, thanks for the help though

    Thread Starter DivMaster

    (@divmaster)

    Thread Starter DivMaster

    (@divmaster)

    thanks for the suggestion, but again in that theme it is displaying posts in one row, i need something like 3-4 rows and 5-6 columns, also i prefer to know about a plugin if available for learning purpose, any help

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