WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_register_style codex question (2 posts)

  1. Danielx64
    Member
    Posted 3 years ago #

    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?

  2. Mark / t31os
    Moderator
    Posted 3 years ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.