How would I Redirect an existing WooCommerce customer to a specific url after Checkout

The following should suffice. It will redirect to your custom URL only if the order has not failed. add_action( ‘woocommerce_thankyou’, ‘ii_redirect_thankyou’); function ii_redirect_thankyou( $order_id ){ $customer_orders = get_posts( array( ‘numberposts’ => 2, // getting 2 as by the time this purchase has happened the count will be 1. ‘meta_key’ => ‘_customer_user’, ‘meta_value’ => get_current_user_id(), ‘post_type’ … Read more

How to show Custom Post Types under Taxonomy in a new WordPress page template?

I see a few things that may be causing problems. To answer your question though, this line: $loop = new WP_Query( array( ‘post_type’ => ‘subjects’, ‘posts_per_page’ => ‘3’ ) ); is performing a query on a post type called “subjects”. I think you want to be pulling your quizzes. So the line should be: $loop … Read more

Error datatable whit ajax

sorry. I’m very sorry, I could already solve. I have my local wordpress installation in a site.test/wordpress/ subfolder and in the ajax I make the request without the subfolder. I still have the doubt about the numbers that are added at the end of the url. :/