Matthew Ray
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] order by datepicker valueTry doing a
ksort
before your loop:ksort( $year['exposicoes'] ); foreach( $year['exposicoes'] as $post ) { ...
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
In reply to: [Advanced Custom Fields (ACF?)] How to calculate age from a year of birth?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
In reply to: [Advanced Custom Fields (ACF?)] Create a Dropdown listIt 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()
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” documentation. Elliot provides a template for creating a new field which you can then populate using PHP.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Advanced Custom Fields in RSS FeedACF 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 using WordPress’ feed customizations and pull the meta in directly to the template.
Forum: Plugins
In reply to: [Yoast SEO] Yoast WordPress SEO Plugin DOES NOT WORK!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
In reply to: [Sharexy - Powerful Social Sharing Buttons] Error after installationAdd the following line to your .htaccess file:
php_value allow_url_fopen On