Title: Matthew Ray's Replies | WordPress.org

---

# Matthew Ray

  [  ](https://wordpress.org/support/users/rayman813/)

 *   [Profile](https://wordpress.org/support/users/rayman813/)
 *   [Topics Started](https://wordpress.org/support/users/rayman813/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rayman813/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rayman813/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rayman813/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rayman813/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rayman813/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] order by datepicker value](https://wordpress.org/support/topic/order-by-datepicker-value/)
 *  [Matthew Ray](https://wordpress.org/support/users/rayman813/)
 * (@rayman813)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/order-by-datepicker-value/#post-6625578)
 * Try doing a `ksort` before your loop:
 *     ```
       ksort( $year['exposicoes'] );
       foreach( $year['exposicoes'] as $post ) { ...
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] Select field dont save new value with conditional logic](https://wordpress.org/support/topic/select-field-dont-save-new-value-with-conditional-logic/)
 *  [Matthew Ray](https://wordpress.org/support/users/rayman813/)
 * (@rayman813)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/select-field-dont-save-new-value-with-conditional-logic/#post-6627746)
 * Does this same thing happen without the checkbox interaction? If you simply change
   the select dropdown and hit save, does the field switch back then?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] How to calculate age from a year of birth?](https://wordpress.org/support/topic/how-to-calculate-age-from-a-year-of-birth/)
 *  [Matthew Ray](https://wordpress.org/support/users/rayman813/)
 * (@rayman813)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/how-to-calculate-age-from-a-year-of-birth/#post-6646410)
 * I don’t think this is a question for the ACF support forum. It seems that ACF
   is working properly for you. These kind of questions should be asked on general
   support forums like StackOverflow. Here is the answer to your question, though:
 *     ```
       function age_in_years() {
           $year_of_birth = get_field( 'date_of_birth', $modelID );
           return intval( date( 'Y', time() - strtotime( $year_of_birth ) ) ) - 1970;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] Create a Dropdown list](https://wordpress.org/support/topic/create-a-dropdown-list/)
 *  [Matthew Ray](https://wordpress.org/support/users/rayman813/)
 * (@rayman813)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/create-a-dropdown-list/#post-6674120)
 * It sounds like you are trying to set up a form for your users to fill out on 
   the frontend. If that is the case, you should take a look at the `[acf_form()](http://www.advancedcustomfields.com/resources/acf_form/)`
   function. You will still have to create your dropdown and populate it manually,
   but getting it on the frontend is another story.
 * If you are looking to auto-populate your field with the distributors, take a 
   look at the “[Creating a new field](http://www.advancedcustomfields.com/resources/creating-a-new-field-type/)”
   documentation. Elliot provides a template for creating a new field which you 
   can then populate using PHP.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] Advanced Custom Fields in RSS Feed](https://wordpress.org/support/topic/advanced-custom-fields-in-rss-feed/)
 *  [Matthew Ray](https://wordpress.org/support/users/rayman813/)
 * (@rayman813)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/advanced-custom-fields-in-rss-feed/#post-6554829)
 * ACF stores the information about it’s fields as simple post and user meta. What
   you need to do is set up an [ RSS feed template](http://codex.wordpress.org/Customizing_Feeds)
   using WordPress’ feed customizations and pull the meta in directly to the template.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Yoast WordPress SEO Plugin DOES NOT WORK!](https://wordpress.org/support/topic/yoast-wordpress-seo-plugin-does-not-work/)
 *  [Matthew Ray](https://wordpress.org/support/users/rayman813/)
 * (@rayman813)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/yoast-wordpress-seo-plugin-does-not-work/#post-3263081)
 * The problem is that you have a javascript error in the admin panel. The SEO plugin
   loads after everything else, so if there is an error in a script somewhere the
   javascript that makes the tabs display doesn’t run. Find the file that is causing
   the error and comment the erroneous line out and it should work. (You then have
   to fix the error 😛 )
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Sharexy - Powerful Social Sharing Buttons] Error after installation](https://wordpress.org/support/topic/error-after-installation-6/)
 *  [Matthew Ray](https://wordpress.org/support/users/rayman813/)
 * (@rayman813)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-after-installation-6/#post-3320111)
 * Add the following line to your .htaccess file:
 * `php_value allow_url_fopen On`

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