Add following code to your functions.php Added variable can be found in i18n object.
I have recently started learning Angular.js so I decided to do an weightlifting program calculator as an small exercise. I chose Jim Wendler’s 5/3/1 because it’s the one that I have been using successfully. View demo or view source on GitHub
Sometimes Windows is not able to delete node_modules folder, because file names are larger than is supported by file system. Folder can be deleted with RimRaf, a rm -rf util for Node.js Install RimRaf $ npm install rimraf -g Remove node_modules folder $ rimraf node_modules
$ wp search-replace ‘[shortcode_1]’ ‘[shortcode_2]’ wp_posts –skip-columns=”post_title,post_name” Replaces [shortcode_1] with [shortcode_2] from wp_posts table and skips columns post_title and post_name. Add –dry-run flag if you want to see the results without applying changes.
View demo dev.viklund.fi/wp-rest-api. Full source can be found at Github Below is a WordPress Rest API 2 filter to add sibling information to posts for easing navigation.
$wp_query->post_count contains number of posts being displayed. $wp_query->found_posts contains total number of posts found with current criteria.
$ wp db export Exports your database to databasename.sql file.
Mouse wheel zoom can be disabled by adding scrollwheel: false to map options object.
Local variables are not available in get_template_part() templates. Instead of using global variables, template can be included with locate_template() function and all your variables will be available in the template file.