WordPress.org

Ready to get started?Download WordPress

Forums

get_settings within an echo (3 posts)

  1. friend_of_grommit
    Member
    Posted 8 years ago #

    I'm no php expert (as is about to become evident)

    I'm trying to use a get_settings along with an echo, and I can't get it to work.

    I'm trying to do something like:

    <?php include ("echo "wp-content/themes/get_settings('template')/features.php"");?>

    But it doesn't work. :(

    Can anyone offer help please?

    Thank you!

  2. Ming
    Member
    Posted 8 years ago #

    The easiest way is to use the predefined TEMPLATEPATH.

    <?php include (TEMPLATEPATH . '/features.php'); ?>

  3. friend_of_grommit
    Member
    Posted 8 years ago #

    SUPER suggestion!!! Thank you! :)

Topic Closed

This topic has been closed to new replies.

About this Topic