Forums
(@petraagency)
3 years, 12 months ago
add_filter( ‘get_previous_post_where’, ‘wppnav_exclude_posts’ ); add_filter( ‘get_next_post_where’, ‘wppnav_exclude_posts’ ); function wppnav_exclude_posts( $where ) { return $where . ‘ AND p.ID NOT IN (742, 744)’; }
742 -> aboutus 744 -> contact
Now I realized you have edited the code as a post, but the part I tried to exclude is pages.
Hello there, Thank you for your answer, I copied your code into theme functions.php and edited the corresponding ID’s but it didn’t work. do i need to add it with some other code?
5 years, 3 months ago
/home/customer/www/bebekicincikolata.com/public_html/wp-content/plugins/woo-min-max-quantity-limit/woo-min-max-quantity.php(82): apply_filters(‘woocommerce_loo…’, ‘<a href=”?add-t…’, Object(WC_Product_Simple))
Hi Did you review it?
https://www.bebekicincikolata.com/c/jelatin-paketli-draje/