Support » Themes and Templates » Appearance Menu – Theme Options URL

  • Resolved wlpdrpat



    I am in the process of debugging upgrading to 3.0.3 from 2.9.2 and have found a bug in my theme.

    In 2.9.2 the custom options page for my theme worked as expected. The link for options page showed up as expected and pointed to the correct url.

    In my test upgrade – I find the the link to my options page appears to be a relative link that points to whatever page I am currently on.

    I looked through the Twenty Ten theme but could not find code for setting up a custom options page or if it is there I missed it.

    Here is what I have in my functions:
    add_theme_page(__(‘Options’), __(‘Options’), ‘edit_themes’, (__FILE__), ‘theme_option_page’);

    Any help on fixing this would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this:

    add_theme_page(__('Options'), __('Options'), 'edit_themes', basename(__FILE__), 'theme_option_page');



    Hey Chellycat,

    You are a superstar!! It was staring me in the face and I missed it.

    Thanks for your help.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Appearance Menu – Theme Options URL’ is closed to new replies.