Title: Loading value returns font plus &#039;Array, Array&#039;
Last modified: August 31, 2016

---

# Loading value returns font plus 'Array, Array'

 *  [joshuaiz](https://wordpress.org/support/users/joshuaiz/)
 * (@joshuaiz)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-value-returns-font-plus-array-array/)
 * Hello,
 * I saw this previous support thread:
 * [https://wordpress.org/support/topic/using-google-fonts-selector-in-dynamic-stylesheet?replies=2](https://wordpress.org/support/topic/using-google-fonts-selector-in-dynamic-stylesheet?replies=2)
 * However this did not solve my issue. I’m loading the font selection like so in
   the <head> of my theme:
 *     ```
       <style>
       body { font-family: <?php the_field('body_font', 'option'); ?>; }
       </style>
       ```
   
 * When I look in Chrome Dev Tools, it is returning this:
 *     ```
       body { font-family: Open Sans, Array, Array; }
       ```
   
 * A vardump like so:
 *     ```
       <?php
       $bodyfont = the_field('body_font', 'option');
       var_dump( $bodyfont );
       ?>
       ```
   
 * returns:
 *     ```
       Open Sans, Array, ArrayNULL
       ```
   
 * How can I just grab the font name (or value) to use with css?
 * Thanks!
 * [https://wordpress.org/plugins/acf-google-font-selector-field/](https://wordpress.org/plugins/acf-google-font-selector-field/)

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

 *  [blue-frontend](https://wordpress.org/support/users/blue-frontend/)
 * (@blue-frontend)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/loading-value-returns-font-plus-array-array/#post-6998319)
 * I have the same issue.
    Would be nice if there something we can do about it.
 * Tx,
    Sam
 *  [BeauWalsh](https://wordpress.org/support/users/beauwalsh/)
 * (@beauwalsh)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/loading-value-returns-font-plus-array-array/#post-6998361)
 * I am in the exact same place. Is there some line that just echoes the font name
   itself?
 *  [BeauWalsh](https://wordpress.org/support/users/beauwalsh/)
 * (@beauwalsh)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/loading-value-returns-font-plus-array-array/#post-6998362)
 * Think I got it!
 * `<?php $value = get_field( 'field_name','option' );echo $value['font'];?>`

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

The topic ‘Loading value returns font plus 'Array, Array'’ is closed to new replies.

 * ![](https://ps.w.org/acf-google-font-selector-field/assets/icon-256x256.png?rev
   =1141057)
 * [ACF: Google Font Selector](https://wordpress.org/plugins/acf-google-font-selector-field/)
 * [Support Threads](https://wordpress.org/support/plugin/acf-google-font-selector-field/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-google-font-selector-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-google-font-selector-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-google-font-selector-field/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)

 * 3 replies
 * 3 participants
 * Last reply from: [BeauWalsh](https://wordpress.org/support/users/beauwalsh/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/loading-value-returns-font-plus-array-array/#post-6998362)
 * Status: not resolved