Title: Multiple Custom Fields within a table row
Last modified: August 21, 2016

---

# Multiple Custom Fields within a table row

 *  Resolved [sunhomes](https://wordpress.org/support/users/sunhomes/)
 * (@sunhomes)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/multiple-custom-fields-within-a-table-row/)
 * Hi There,
 * First of all thank you for the great plugin. It is working great for the purpose
   I need it for.
 * Here’s what I’m trying to do.
 * I have set up my query, table format (Row style=fields), selected a few custom
   fields. Everything outputs correctly in rows and columns.
 * I have a bout 7-8 columns of fields. So I am trying to list the custom meta values
   all under column 2 (as an example) – So instead of 7-8 columns I can condense
   them into 3.
 * To do this I add the fields to my field list. I then choose one of the fields
   and under rewrite the output I list the tokens for the other fields. Under the
   preview it seems to show ok but as soon as I hit save…
 * `Warning: array_map() [function.array-map]: Argument #2 should be an array in/
   public_html/wp-content/plugins/query-wrangler/themes/views/query-edit-views.inc
   on line 11`
 * Any idea how I can solve this or the “Correct” way to go about it?
 * [http://wordpress.org/extend/plugins/query-wrangler/](http://wordpress.org/extend/plugins/query-wrangler/)

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

 *  [12southmusic](https://wordpress.org/support/users/12southmusic/)
 * (@12southmusic)
 * [13 years ago](https://wordpress.org/support/topic/multiple-custom-fields-within-a-table-row/#post-3674971)
 * We’re experiencing the same problem when doing field rewrites using any style.
 * We’re attempting to exclude most fields from display, then rewrite the last field
   to customize the output and enter tokens for the excluded fields.
 * Example:
 *     ```
       <div class="span4">
       <h1>{{post_title}}</h1>
       <a href="#"><img src="{{custom_field_image}}" /></a>
       </div>
       ```
   
 * We receive the exact error as above:
 * > Warning: array_map() [function.array-map]: Argument #2 should be an array in/
   > nfs/c06/h02/mnt/89627/domains/cyberpr.com/html/wp-content/plugins/query-wrangler/
   > themes/views/query-edit-views.inc on line 11
 * We’ve done this often in Drupal, however I’m wondering if multiple variables 
   per field is not support with this plugin?
 * Please advise and big thanks!
 *  [12southmusic](https://wordpress.org/support/users/12southmusic/)
 * (@12southmusic)
 * [13 years ago](https://wordpress.org/support/topic/multiple-custom-fields-within-a-table-row/#post-3674972)
 * May have figured out a solution:
 * Our issue seemed to fix itself when we removed any whitespace or extra lines 
   in the rewrite box. Hence, the above query would now become this to function 
   correctly:
 * > `<div class="span4"><h1>{{post_title}}</h1><a href="#"><img src="{{custom_field_image}}"/
   > ></a></div>`
 * Hope that helps anyone having the same issue!
 *  Plugin Author [Jonathan Daggerhart](https://wordpress.org/support/users/daggerhart/)
 * (@daggerhart)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/multiple-custom-fields-within-a-table-row/#post-3675010)
 * Whitespace in rewrite was causing issues until 1.5rc13. Please let me know if
   you run into further issues.

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

The topic ‘Multiple Custom Fields within a table row’ is closed to new replies.

 * ![](https://ps.w.org/query-wrangler/assets/icon-256x256.jpg?rev=3279076)
 * [Query Wrangler](https://wordpress.org/plugins/query-wrangler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-wrangler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-wrangler/)
 * [Active Topics](https://wordpress.org/support/plugin/query-wrangler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-wrangler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-wrangler/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jonathan Daggerhart](https://wordpress.org/support/users/daggerhart/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/multiple-custom-fields-within-a-table-row/#post-3675010)
 * Status: resolved