Support » Plugins » Hacks » wp_register_style codex question

  • Resolved Danielx64



    I’ve managed to use the wp_register_style where it get some of it options from database by using

    wp_register_style('phpbb', (get_option('phpbb_url') .'style.php?id=2&lang=en'));

    and that works rather well.

    However after looking at I went to use

    wp_register_style('phpbb', $sa_settings['phpbb_url'] 'style.php?id=2&lang=en'));

    and Adobe dreamweaver CS5 doesn’t like the code for some reason. Can someone please help me with this?

Viewing 1 replies (of 1 total)
  • You’re missing a period after $sa_settings['phpbb_url'] and have an extra bracket on the end of the line..

    That line should read..

    wp_register_style('phpbb', $sa_settings['phpbb_url'] . 'style.php?id=2&lang=en');

Viewing 1 replies (of 1 total)
  • The topic ‘wp_register_style codex question’ is closed to new replies.