petraagency
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesfunction wppostnav_exclude_pages($where) { global $wpdb; return $where . "?AND p.ID IN ( SELECT p.ID FROM $wpdb->posts p LEFT JOIN $wpdb->postmeta m ON p.ID = m.post_id WHERE p.ID NOT IN ('742, 744'))"; } add_filter ('get_next_post_where', 'wppostnav_exclude_pages', 999,1) ; add_filter ('get_previous_post_where', 'wppostnav_exclude_pages', 999,1);
again i edited the code as above, this time it disappeared from all pages
- This reply was modified 3 years, 8 months ago by petraagency.
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesfunction wppostnav_exclude_pages($where) { global $wpdb; return $where . " AND p.ID IN ( SELECT p.ID FROM $wpdb->posts p LEFT JOIN $wpdb->postmeta m ON p.ID = m.post_id ? ? ? ? ? ? ? ? ? ? ?WHERE p.ID NOT IN!= ('742, 744')"; } add_filter ('get_next_post_where', 'wppostnav_exclude_pages', 999,1) ; add_filter ('get_previous_post_where', 'wppostnav_exclude_pages', 999,1);
I edited the code as above, this time it disappeared from all pages
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesI couldn’t see the difference between the first code and the second code you sent?
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesstring(11) "‘hello’" string(11) "‘hello’" string(11) "‘hello’" string(11) "‘hello’"
When I entered the last code you sent, the above code appeared on every page, but the plugin is still not closed on pages with id 742 and 744.
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesI tried with the wp standard theme, not the problem with the theme
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesfunction wppostnav_exclude_pages($where) { global $wpdb; return $where . " AND p.ID IN ( SELECT p.ID FROM $wpdb->posts p LEFT JOIN $wpdb->postmeta m ON p.ID = m.post_id WHERE p.ID != '742, 744')"; } add_filter ('get_next_post_where', 'wppostnav_exclude_pages', 999,1) ; add_filter ('get_previous_post_where', 'wppostnav_exclude_pages', 999,1);
Hi
I corrected the code like this, but nothing has changed d?m I tried you very hard ??Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesHi,
I disabled all plugins but no hello. I’m using flatsome by taking the theme. active plugins classic editor, contact form7, svg support and your plugin.Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesHi,
It starts with “Transient:” after the footer. There is no record “hello”Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pageshi,
Original Options no default options present New Options Array ( [wp_post_nav_post_types] => Array ( [page] => page ) [wp_post_nav_show_title] => Array ( [Yes] => Yes ) [wp_post_nav_excerpt_length] => 300 [wp_post_nav_show_featured_image] => Array ( [Yes] => Yes ) [wp_post_nav_fallback_image] => https://xxxx.com.tr/wp-content/uploads/2021/02/favicon.png [wp_post_nav_nav_button_width] => 70 [wp_post_nav_nav_button_height] => 100 [wp_post_nav_background_color] => #881912 [wp_post_nav_open_background_color] => #ffffff [wp_post_nav_heading_color] => #881912 [wp_post_nav_heading_size] => 20 [wp_post_nav_title_color] => #881912 [wp_post_nav_title_size] => 16 [wp_post_nav_category_color] => #ffffff [wp_post_nav_category_size] => 13 [wp_post_nav_excerpt_color] => #ffffff [wp_post_nav_excerpt_size] => 12 )
- This reply was modified 3 years, 8 months ago by petraagency.
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesOf course, I’m working on a demo site right now, I can test the code you give. Thank you for your interest.
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pageshi,
First of all, sorry for the late conversion, but I was able to get to my computer. I tried correcting the code you gave as follows, but nothing changed, is there a place where I did it wrong?function wppostnav_exclude_pages($where) { global $wpdb; return $where . " AND p.ID IN ( SELECT p.ID FROM $wpdb->posts p LEFT JOIN $wpdb->postmeta m ON p.ID = m.post_id WHERE p.ID != '742, 744')"; } add_filter( 'get_next_post_where', 'wppostnav_exclude_pages',10,1);
- This reply was modified 3 years, 8 months ago by petraagency.
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesHi
Did you have a chance to try it?Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesThank you
Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesHi
I have almost no php knowledge, can you help me and how to write this function?Forum: Plugins
In reply to: [WP Post Nav] exclude certain pages when navigating pagesadd_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)'; }