Script not working

Script not working

Jagst3r21Jagst3r21 Posts: 14Questions: 0Answers: 0
edited November 2012 in General
It is probably my fault, but I can't seem to get the script to work properly. Look here and you'll see that the script is being called properly, but it is not working: http://jagst3r15.com/scholarships360/table-of-scholarships/ I am using WordPress and am using this code:

[code]


Scholarship
Amount
Ending


<?php $posts = get_posts('category=6&numberposts=25');
foreach($posts as $post) { $title = get_the_title();?>


<?php echo ($title); ?>
<?php $amount = get_post_meta($post->ID, 'Amount', true); ?><?php echo $amount; ?>
<?php $test = get_post_meta($post->ID, 'Test', true); ?><?php echo $test; ?>


<?php } ?>
[/code]

to make my table. Is the problem because I am using php within the table? I am not good enough with JS or JQuery to figure this out so any help is appreciated!

Thanks,

James

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Your tbody is inside the loop :-). Move it outside and it should work.

    Allan
This discussion has been closed.