WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] wp_register_style codex question

[Resolved] wp_register_style codex question

  • Danielx64
    Member

    @danielx64

    Hello,

    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 http://www.onedesigns.com/tutorials/how-to-create-a-wordpress-theme-options-page#nogo 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 ‘[Resolved] wp_register_style codex question’ is closed to new replies.