Create custom theme options page in WordPress

If you would like to have a custom theme options page in your WordPress theme, you can do it by simply adding below wp hooks.

below code goes in your functions.php

add the hooks to theme_setup in

and you theme options page can be like this

if you want to access your options in frontend templates, simply add this to header.php (all the way top)

to print particular property, do like below.

Leave a comment