404 pages and variables
-
WordPress 3.03. I’m doing a custom theme which has a featured image on each page. The featured is a custom field type set for each page. This function works for every page bar the 404. Which throws up:
Undefined variable: featured_image
So I’m kind of curious why is this only happening on the 404 page and not any other of the pages?
This is the code:
https://wordpress.pastebin.com/CeM7RXPr
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘404 pages and variables’ is closed to new replies.