Check if the Post has Certain Number of Image Attachments
The following snippet of code will check to see if your post or custom post type has any attachments and then allows you to use an if else statement. You…
Change the Number of Related Products in Woocommerce
The following bit of code will change the number of related products that are displayed on a Woocommerce single product page. Add this to your functions.php file. /* Woocommerce change…
Get Category of Current Custom Post Type
The following will list the categories of the current post type. If you want to exclude one of the categories so it does not show add this:
List Custom Post Type Categories
The following will list the categories of a custom post type. Code Credit to: http://www.paulund.co.uk/display-categories-of-a-custom-post-type
- Go to the previous page
- 1
- …
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- …
- 30
- Go to the next page