Add following line to your Contact Form 7 forms Additional Settings field acceptance_as_validation: on
You can easily regenerate thumbnails with WP-CLI, just type $ wp media regenerate –yes in the command line. The –yes flag answers yes to the confirmation message. WP-CLI documentation
Display posts dates as 2 days ago instead of regular date. Documentation
Firman pikkujoulut ja Raised Fist
$the_query = new WP_Query( array(…) ); $posts = $the_query->get_posts();
In WordPress 4.0+ WP_Query argument orderby accepts arrays, so posts can be ordered by multiple keys and orders. In example
Now your data is formatted in array with key as display text and value as custom field content array( ‘Display text’ => ‘Custom field content’, ‘…’ => ‘…’, ‘…’ => ‘…’, ‘…’ => ‘…’, )
Add following code to your functions.php Added variable can be found in i18n object.