WP PHP File

Discussion in 'PHP' started by drew68, Aug 17, 2012.

  1. #1
    i have one row with 4 columns and in each column have a box.

    i simply need another string of rows right above that one row...so basically 2 rows. the script is in the php file.

    can someone help me out real quick? quick job, quick pay.

    drew
     
    drew68, Aug 17, 2012 IP
  2. Soulstone

    Soulstone Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    I think we need more information if we're going to help you out. Put some code on the table.
     
    Soulstone, Aug 17, 2012 IP
  3. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    here's the script....

    <?php

    /* ------------------------------------------------------------------------------------------------------------



    Template Name: Portfolio



    ------------------------------------------------------------------------------------------------------------ */

    ?>

    <?php get_header(); ?>

    <?php

    $l = _sg('Layout')->getLayout();



    $class = array(

    'portfolio_2' => 'col1-2',

    'portfolio_3' => 'col1-3',

    'portfolio_4' => 'col1-4',

    );



    $imgsize = array(

    'portfolio_2' => 'sg_portfolio2',

    'portfolio_3' => 'sg_portfolio3',

    'portfolio_4' => 'sg_portfolio4',

    );



    $prc = _sg('Portfolio')->getRequiredCategories();

    $args = array(

    'post_type' => 'portfolio',

    'posts_per_page' => -1,

    );

    if (!empty($prc)) $args['post__in'] = get_objects_in_term($prc, 'portfolio_category');



    query_posts($args);

    ?>



    <?php if (have_posts()) { ?>

    <div id="portfolio-outer" class="bottom-15">

    <ul id="portfolio" class="inner-960 clearfix">

    <?php while (have_posts()) : the_post(); ?>

    <?php

    $img = get_the_post_thumbnail(null, $imgsize[$l], array('alt' => get_the_title()));

    $img_e = (empty($img)) ? FALSE : TRUE;

    ?>

    <li class="<?php echo $class[$l];?>" data-type="<?php sg_the_portfolio_category(get_the_ID()); ?>" data-id="<?php the_ID(); ?>">

    <div class="project">

    <?php if ($img_e) { ?>

    <div class="proj-img"><a href="<?php echo wp_get_attachment_url(get_post_thumbnail_id()); ?>" class="prettyPhoto zoom" title=""></a><a href="<?php the_permalink(); ?>"></a><?php echo $img; ?></div>

    <?php } ?>

    <div class="proj-info">

    <h4><a href="<?php the_permalink(); ?>"><?php echo sg_text_trim(get_the_title(), 30); ?></a></h4>

    <p><?php echo sg_text_trim(get_the_excerpt(), 60); ?></p>

    </div>

    </div>

    </li>

    <?php endwhile; ?>

    </ul>

    </div>

    <?php } else {

    echo sg_message(__('Portfolio is empty', SG_TDN));

    } ?>


    <?php get_footer(); ?>



    ..... here's the page http://blueboxfoam.com/?page_id=37 ...i need another row of applications with those boxes...so 8 blue boxes and 2 rows.
     
    drew68, Aug 17, 2012 IP
  4. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #4
    any help would be greatly appreciated guys! anyone interested in helping?
     
    drew68, Aug 17, 2012 IP
  5. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #5
    can someone please help?
     
    drew68, Aug 20, 2012 IP
  6. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #6
    bump bump bump!
     
    drew68, Aug 20, 2012 IP