Support » Plugin: Last Viewed Posts » exclude specific page

Viewing 1 replies (of 1 total)
  • Plugin Author Noumaan Yaqoob

    (@noumaan)

    yes if you are comfortable editing plugin files. Change function zg_lwp_header() on line 46 like this:

    function zg_lwp_header() { // Main function is called every time a page/post is being generated
    	if (is_single()) {
    		zg_lw_setcookie();
    	} else if (is_page()) {
    		global $zg_recognize_pages;
    		if ($zg_recognize_pages === true) {
    		// Use the page ID you want to exclude
    			if(is_page(10)) {
    			// do nothing
    			} else {
    			zg_lw_setcookie();
    			}
    		}
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘exclude specific page’ is closed to new replies.