How to create a custom attribute from System & Setting ->Names & Attributes and access it on pages
Attributes created in that location are Site Attributes, not Page Attributes.
If you want to create page attributes you need to create them in Dashboard → Pages & Themes → Attributes