Timeline for All posts returned when author of 0 is queried
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2020 at 16:24 | comment | added | jdm2112 | Querying with a 0 value is the problem as I see it. | |
Jun 15, 2020 at 16:13 | comment | added | PeterB | Thanks for your reply. Didn't know about PHP outputting var values within double quotes. I did indeed get this working but was trying not to have too many ifs. So I was just searching for the current logged on user, which would be 0 if not logged on. Would you suggest checking for userID !== 0 or use function is_user_logged_on()? | |
Jun 15, 2020 at 16:09 | vote | accept | PeterB | ||
Jun 15, 2020 at 15:31 | history | answered | jdm2112 | CC BY-SA 4.0 |