display data in column
-
Hi everybody,
I’ve hacked the archive.php file, to display specific datas from posts :
The posts are displayed like this :
The title, custom field 1 and custom field 2
By exemple :
Paradise swimming pool, in Montpellier for 3-12 years old kids
The activity park, in Paris for 4-16 years old kids
….I need to display this datas in columns (in a table) like this :
Place to go______________________City__________________Kids age range
Paradise swimming pool_________Montpellier__________________3-12
The activity park__________________Paris____________________4-16Here is the code in the archive.php that displays these data
<div class="single" id="post-<?php the_ID(); ?>"> <div class="title"> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Liens permanent vers <?php the_title_attribute(); ?>"><?php the_title(); ?></a> à <?php $values = get_post_custom_values("Lieu"); echo $values[0]; ?> pour les <?php $values = get_post_custom_values("min"); echo $values[0]; ?>/<?php $values = get_post_custom_values("max"); echo $values[0]; ?> ans</h3> </div> </div>I’m not an expert, I tried with css class like inline but don’t work
I tried with a table but with no success….Thanks for your help !
Got my excuse if my message is strange I’m french, and my english is approximative. On the french community there are message that stay for a very long time…. so I try here !
Bye
The topic ‘display data in column’ is closed to new replies.