Redirect Existing Post to CPT
create a way to check the post date, and make a if statment if( $date_of_post < ‘2021-10-08’) { header(‘Location:https://google.com’); die(); }
create a way to check the post date, and make a if statment if( $date_of_post < ‘2021-10-08’) { header(‘Location:https://google.com’); die(); }
If you are you using WooCommerce, you can use the “woocommerce_before_thankyou” hook to achieve this. In frontend you can create a custom AJAX action to upload all form data and append the WooCommerce product ID (use WC()->cart->add_to_cart()) and your own post type logic (maybe you can add this post as draft and store the post … Read more
So after 2 days of searching I found a solution. Permalink manager lite + this function and all works fine. //Rewrite rule function pm_extra_permastructure_tags($default_uri, $native_slug, $post, $slug, $native_uri) { // Do not affect native URIs if($native_uri == true || empty($post->post_type) || $post->post_type !== ‘mieszkanie’) { return $default_uri; } $inwestycja = get_field(‘inwestycja’, $post->ID); if( !empty($inwestycja) ) … Read more
Filter taxonomy by CPT
update custom taxonomy custom fields
Select custom post type do display from page editor
Create loop from selected terms in ACF taxonomy field
Cannot manage to display my CPT in Recent Posts widget
Custom post type archive page filters
Why “Mine” is the default view when adding ‘capability_type’ in register_post_type