how to use header function in wp-load.php file [closed]

You should never create standalone files to do things like this. This is one of the reasons timthumb turned into a security nightmare, and it’s incredibly fragile and dangerous. WordPress is a CMS, and it should handle all requests. Instead, use GET or POST variables in the URL to do the work inside WordPress, by … Read more

Ajax Load More or View More functionality for woocommerce category layout by template overriding

You can achieve this by create a template override for woocommerce category layout. How to Create Template override Go to wp-content/theme/{your_theme} Create a folder named woocommerce if already not exist Then create a file titled archive-product.php Now, paste the below code as instructed and modify any parameters per your need Add this code right after … Read more

link to page_for_posts

I wouldn’t classify this as a WordPress issue persay. The problem is that any get_*() functions return values. This means that get_permalink() returns the permalink to be assigned ot a variable which you’re not doing or intend to do in this case. So we have the value sitting in memory all we need to do … Read more

Move related products after product summary? [closed]

Related Product Section is already in the woocommerce_after_single_product_summary hook. Now You need to change the priority. Related Products Priority is given: 20 If You want to show it before product tab section, then you have to make the priority less than 10. such as 9 /** * Hook: woocommerce_after_single_product_summary. * * @hooked woocommerce_output_product_data_tabs – 10 … Read more