Check for a value in a custom query

After some serious thinking and some trial and error I came up with this solution. Because all data in the query comes from ACF fields I found a way to use the data from these fields to get the result I was looking for using a For loop: // Get the values from the ACF … Read more

Bring your own theme to PHP 8

I have found the error. In the header.php an undefined constant was tried to be accessed. So instead of the following wrong code: <?php if ($pagetitle == pagetitle_1){ $pt1 = “pagetitle_1”; $main = “main_1”; } else { $pt1 = “”; } ?> I had to add the quotation marks to pagetitle: <?php if ($pagetitle == … Read more