Exclude frontpage and blog page not working
-
Hello, I found a little bug in the exclude functionnality when the excluded page is the homepage or blog posts page.
It is a variable type problem, because those pages are stored as “string” in database, but the source code expect it to be “int”.
Here is a example to fix it :
(in function mtnc_check_exclude(), add this line after the if/else statement, around line 2237 in includes/functions.php)
$curr_id = (int) $curr_id;
That’s all!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude frontpage and blog page not working’ is closed to new replies.