How-to articles, tricks, and solutions about WORDPRESS
get all the images from a folder in php
To get all the images from a folder in PHP, you can use the glob function.
Get Category name from Post ID
To get the category name from a post ID in PHP, you can follow these steps:
Get custom product attributes in Woocommerce
To retrieve custom product attributes in WooCommerce, you can use the get_post_meta() function.
Nginx serves .php files as downloads, instead of executing them
There are several reasons why Nginx may serve PHP files as downloads instead of executing them.
Woocommerce get products
You can retrieve a list of products in WooCommerce using the get_products() function.