Title: Table Displaying Values
Last modified: August 22, 2016

---

# Table Displaying Values

 *  [AngeloMaiuri](https://wordpress.org/support/users/angelomaiuri/)
 * (@angelomaiuri)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/table-displaying-values/)
 * Hello!
 * I am trying to make a comparison table using this plugin, which takes the custom
   fields of posts and displays them to the user in a comparable way (a wonderful
   example: [http://www.dpreview.com/products/compare/side-by-side?products=nikon_d90&products=nikon_d3&products=nikon_d4&sortDir=ascending](http://www.dpreview.com/products/compare/side-by-side?products=nikon_d90&products=nikon_d3&products=nikon_d4&sortDir=ascending))
 * Right now my code displays the Information this way:
 * NAME: Name1
    ADDRESS: Place1
 * NAME: Name2
    ADDRESS: Place2
 * I need it to display in this manor:
 * NAME: Name 1 | Name 2
    ADDRESS: Place1 | Place 2
 * I need to figure out, how to display the values the way I want them to.
 * Here is my page template:
 *     ```
       <?php
           $wpfp_before = "";
           echo "<div>";
   
           echo "<table>";
           if ($favorite_post_ids) {
       		$favorite_post_ids = array_reverse($favorite_post_ids);
               $post_per_page = wpfp_get_option("post_per_page");
               $page = intval(get_query_var('paged'));
   
               $qry = array('post__in' => $favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page);
               // custom post type support can easily be added with a line of code like below.
       		$qry['post_type'] = array('post','page','works');
       		query_posts($qry);
   
               while ( have_posts() ) : the_post();
   
       			echo "<tr style='font-family: Oswald;text-transform: uppercase;' class='koolik'>";
   
       				echo "<th>" . "Name:   ";
       				echo "</th>";
   
       				echo "<td class=aspekt><a href='".get_permalink()."' title='". get_the_title() ."'>" . get_the_title() . "</a> ";
       				echo "</td>";
   
                   echo "</tr>";
   
                   echo "<tr>";
   
       				echo "<th>" . "Address:   ";
       				echo "</th>";
   
       				echo "<td class=aspekt>";
       				the_field('address');
       				echo "</td>";
   
                   echo "</tr>";
   
               endwhile;
   
               echo '<div class="navigation">';
                   if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
                   <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
                   <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
                   <?php }
               echo '</div>';
   
               wp_reset_query();
           } else {
               $wpfp_options = wpfp_get_options();
               echo "<h5>";
               echo $wpfp_options['favorites_empty'];
               echo "</h5>";
           }
           echo "</table>";
   
           echo '<h4>'.wpfp_clear_list_link().'</h4>';
           echo "</div>";
           wpfp_cookie_warning();
       ```
   
 * Any help is much appreciated!
 * Here are some screenshots of the current state (different names used): [http://s22.postimg.org/ivlaxais1/Capture.png](http://s22.postimg.org/ivlaxais1/Capture.png)
 * [https://wordpress.org/plugins/wp-favorite-posts/](https://wordpress.org/plugins/wp-favorite-posts/)

The topic ‘Table Displaying Values’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-favorite-posts.svg)
 * [WP Favorite Posts](https://wordpress.org/plugins/wp-favorite-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-favorite-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-favorite-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-favorite-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-favorite-posts/reviews/)

## Tags

 * [comparison](https://wordpress.org/support/topic-tag/comparison/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * 0 replies
 * 1 participant
 * Last reply from: [AngeloMaiuri](https://wordpress.org/support/users/angelomaiuri/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/table-displaying-values/)
 * Status: not resolved