Give help. Get help.

  • # January 5, 2010 at 11:04 am

    I found a cool bit of code in the Digging Into WordPress about using Global Custom Fields. It requires inserting a bit of code into your functions.php file:

    < ?php add_action('admin_menu', 'add_gcf_interface'); function add_gcf_interface() { add_options_page('Global Custom Fields', 'Global Custom Fields', '8', 'functions', 'editglobalcustomfields'); } function editglobalcustomfields() { ?>

    Global Custom Fields

    < ?php wp_nonce_field('update-options') ?>

    Amazon ID:

    < ?php } ?>

    Unfortunately, it produces this error when I try and view the wp-admin:

    Parse error: syntax error, unexpected ‘<‘ in [domain redacted]/html/wp-content/themes/hawpTheme/hawpTheme/functions.php on line 7

    Line 7, in the PHP file, being the first line of code of the above snippet. There might just be something wrong syntax-wise?

    # January 12, 2010 at 7:42 am

    It may help if you were to post the whole code.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.