ACF: register subfields for existent parent “group” field depend on other fields post data with PHP
ACF: register subfields for existent parent “group” field depend on other fields post data with PHP
ACF: register subfields for existent parent “group” field depend on other fields post data with PHP
Creating a Single Instance Custom Post Type with Limited Module Options using ACF and WPGraphQL
You could consider working with unix timestamps (a numerical representation of a date and time that is the seconds elapsed since 00:00:00 1st January 1970). This makes the math easier since we would be working with plain numbers: // Convert pick up date to unix timestamp integer. $start_timestamp = strtotime( get_field( ‘pick_up_date’ ) . ‘ … Read more
You could consider using the rest_{$this->post_type}_query filter hook to modify the result of certain REST API queries. To not mess with existing API calls, you could look at using new query parameters that have not been used. Then, use these parameters in your filter. For example: GET /wp-json/wp/v2/crowdfunding?per_page=6&foo_parameter=bar function my_plugin_filter( $args, $request ) { if … Read more
Your query there is looking for results from either post type that have the meta value. AFAIK there’s no way to do that in a single query unless you also add the checkbox to the other post type.
WooCommerce: expiring date for products (and on sale some days before)
ACF – not able to loop through flexible content field which is inside a group field
ACF has a built in filter for their flexible rows which you may be able to leverage/adjust for your own use on your repeater, or investigate and build your own: apply_filters( ‘acf/fields/flexible_content/layout_title’, $title, $field, $layout, $i ); Their documentation covers this here: https://www.advancedcustomfields.com/resources/acf-fields-flexible_content-layout_title/
Put ACF function output code the_terms
How to get ACF field to show up on all posts on front end?