Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Forum: Your WordPress
    In reply to: Review my website
    sam_tots

    (@sam_tots)

    It looks like a theme from elegantthemes.com? I think it is a nice theme, I just recognize it from checking out other sites and stuff, so with that said, maybe try and change up the overall graphic look of it to make it more yours and more your companies? I suppose most people would not know the difference so I am, I guess a little more critical on that part.

    Thread Starter sam_tots

    (@sam_tots)

    Thanks, I will try that. It seems as if there has to be at least one tab set in “setting” panel… My gallery is really simple, and I just want to show the thumbs, nothing more… there are no sets, etc…

    Thread Starter sam_tots

    (@sam_tots)

    Ok, I was able to output the number of images in the set based on how many get loaded up with the custom field. It just outputs a static number if; if there are 3 images then the numer “3” is out put.

    here is the code

    <?php $imagelist = get_post_meta($post_id, 'image' , false);
    $number_of_images = count($images); ?>
    <p><?php echo $number_of_images ?></p>

    How would I go about getting it to count? like this 1/3 based on which images is up?

    Thread Starter sam_tots

    (@sam_tots)

    This is what I am using to get the images. If anyone wants to see the code, how would i integrate some other code to get the image #list?

    <div class="featured-bar"></div>
    <div id="sections"><ul>
    <?php $images = get_post_meta( $post->ID , 'image' , false );?>
    <?php if($images) :
    foreach( $images as $image ) { ?>
    <li class="position">
    <div class="featured"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $image ?>&h=277&w=950&zc=1" alt="<?php the_title(); ?>" width="950" height="277" /></div>
    </li>
    <?php

    Thread Starter sam_tots

    (@sam_tots)

    Thanks, I will look into that. Still new at php and the wp platform, so things take a bit to get my head around.

    <?php $imagelist = get_post_meta($post_id, $key, false);
    $number_of_images = count($imagelist); ?>

    Then I would echo out the results into a div or whatever would hold it?

    Thanks for you insight, I am having a blast working this site out with WP…

    Thread Starter sam_tots

    (@sam_tots)

    I meant this link :::
    http://www.cdtto.com/site/?p=5

    But the home page works too 😉

    Thanks

    Forum: Fixing WordPress
    In reply to: Custom Field
    Thread Starter sam_tots

    (@sam_tots)

    Never mind I got it!

    I will post what I did up here, I am sure others are looking for something similar.

    Forum: Fixing WordPress
    In reply to: Custom Field
    Thread Starter sam_tots

    (@sam_tots)

    Awesome, that worked! Now, if I wanted each image to get placed within 1 div and as a list.

    So the final output would look like

    <div id=”projects”>

    • <img src=”img.jpg”>
    • <img src=”img.jpg”></l1>
      etc…

    </div>

    The dynamic content is obviously between the

    • how I was able to get it to work now out puts each li in between a new div id “projects” and an ul…

      Thanks so much, I am almost there.

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