The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] wp_register_style codex question (2 posts)

  1. Danielx64
    Posted 5 years ago #


    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

    Posted 5 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


No tags yet.