WooCommerce Add Long Description to Products on Shop Page with Character limit
/**
* WooCommerce, Add Long Description to Products on Shop Page with Character limit
*
* @link https://wpbeaches.com/woocommerce-add-short-or-long-description-to-products-on-shop-page
*/
add_action( 'woocommerce_after_shop_loop_item_title', 'wc_add_long_description' , 9);
function wc_add_long_description() {
global $product;
?>
<div itemprop="description">
<?php echo substr( apply_filters( 'the_content', $product->post->post_content ), 0,77 ); echo '...' ?>
</div>
<?php
}
Also in PHP:
- Jul 29th, 2020 php format
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/system/core/Input.php on line 190
- date () u php
- check if substring in php
- base64 img com php
- $heure = date('H'); php 5
- disable registration laravel
- disable timestamps laravel
- echo errors of php
- collapse and expand phpstorm
- <?php echo do_shortcode(' '); ?> with variable
- 500 Server Error on laravel
- add google analytics to website laravel
- fgetxls php
- echo to console php
- file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
- automatically refresh a php code
- convert to timestamp php
- catch get error php
- console.log from php
- codeigniter form_validation email
- PHPMailer
- executar comando linux php
- Laravel DB Cache