• Resolved jerkjone

    (@jerkjone)


    I have a client (I’m not a programmer for the most part.. i’m a designer)

    But I am building a social site for him for pet owners to view product reviews (videos) and I’ve got everything done except for one thing..

    He wants a “no brains” way of putting 4 images (thumbs 125×125) at the bottom of a post.

    This will be different on each post but it needs an “image source” and a “url” for each of the four options.

    I can get in the code and put a new section under “get post” or w/e that thing is called that will define a location to output the 4 images…

    I, for the life of me, cannot find a pluggin that will work for each post independently. :-/

    I have looked at literally hundreds of plugins and I’ve had no luck finding one that works good enough for him. I am learning coding.. but it is taking alot longer than he will want to wait if I have to code this. Any help would be greatly appreciated!

    THanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Use custom fields?

    See Using_Custom_Fields.

    Thread Starter jerkjone

    (@jerkjone)

    word.. that could totally work! ??

    so… I’m wanting to use a table (i believe this will be easiest for me..)

    <table width="575" border="0" cellpadding="15">
      <tr>
        <td><?php $ad1url = get_post_meta($post->ID, 'ad1url', true); ?>
        	<a href="<?php echo ($ad1url); ?>">
    		<?php $ad1 = get_post_meta($post->ID,'ad1', true); ?>
        	<img src="<?php echo ($ad1); ?>"/></a>
    	</td>
    	<td>?</td>
        <td>?</td>
        <td>?</td>
      </tr>
    </table>

    Something like this?

    Rinse and repeat for the other three? However… It seems I’m forgetting a loop here? Or does this need to be in a loop? Wouldn’t I have qualifying issues in the definitions? Actually… Where is this getting defined initially at? Functions.php?

    Personally, I haven’t used a layout table for about 8 years. Four floated divs should be all that’s needed. In theory, you’ll need 2 custom fields per image – 1 for the image src and the second for the link url. A total of 8 fields per post.

    Thread Starter jerkjone

    (@jerkjone)

    okay… but does my code above look appropriate? I can use divs also.. that isn’t a big deal… tomato tomoto..

    The general approach is right on the button. You could even create custom meta boxes for that final, professional finish. ??

    Thread Starter jerkjone

    (@jerkjone)

    hum.. and where do I add the code for the custom boxes? in function.php?

    Yes – that’s as good a place as any.

    Thread Starter jerkjone

    (@jerkjone)

    wow.. code worked like a charm first time! i’m either getting better at this or I got really lucky!

    THANKS so much for your help! I got the boxes down to I believe ??

    Cool! Glad I could help. ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Tired of searching…’ is closed to new replies.