How to pull date/time in french format for wordpress post?

You need to alter the format of the date/time based on language. This is done by altering the parameters in the_time function. See below for change options. Put the code into the if statement (as an example): <?php if(ICL_LANGUAGE_CODE==’en’){ ?> Last updated <?php the_modified_time(‘F j, Y’); ?> at <?php }else{ ?> Mis à jour le … Read more

Save ACF with a save button on a post

$settings = array( ‘form’ => false, // ‘field_groups’ => array(290), ‘fields’ => array( ‘field_5ba88d1dee1ef’ ), ); acf_form( $settings ); In the above code you can add the multiple fields in the fields attribute. Inside the array you can add the key of the acf fields as many as you want. If you want to show … Read more

Dropdown Select Post Filter

You can use tax_query for Taxonomy Parameters for your WP_Query. $term_id = $_REQUEST [‘soins-taxonomy’]; // or use $_POST or $_GET as the case may be $args = array( ‘order’ => ‘ASC’, ‘post_type’ => ‘etablissements’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘location’, ‘field’ => ‘term_id’, ‘terms’ => $term_id, ), ‘posts_per_page’ => 9, ‘paged’ => $ourCurrentPage ); … Read more