For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.
npm install font-awesome
| #!/bin/sh | |
| ######################### | |
| # # | |
| # Initializing # | |
| # # | |
| ######################### | |
| ## | |
| # You should add all tools as composer dependencies or change this path |
For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.
npm install font-awesome
| // [product_count] shortcode | |
| function product_count_shortcode( ) { | |
| $count_posts = wp_count_posts( 'product' ); | |
| return $count_posts->publish; | |
| } | |
| add_shortcode( 'product_count', 'product_count_shortcode' ); |
| <?php | |
| /* | |
| Plugin Name: Remove All Feeds [for WPSE33072] | |
| Description: Remove all feeds from WordPress | |
| Author: Christopher Davis | |
| Author URI: http://christopherdavis.me | |
| License: GPL2 | |
| */ |