Tag: WordPress Performance
post_class() and get_post_class() – Performance Killers for WordPress and WooCommerce
The get_post_class() function is a WordPress function commonly used within post “rivers”. For example, if I had a list of posts, WooCommerce products, or any content type really, I might have some code like this: <div > Note: post_class() just calls get_post_class() and outputs it to the browser. post_class() will output something like class=”post has-post-thumbnail…