• Hello, I am burning my brain cells for two hours now with no effect.

    I want to do this:

    ′<?php
    if ( function_exists(‘register_sidebar’) )

    $samsung_Blogroll = “Lots of links. Check these for great joy.”;
    $samsung_Archives = “These are the archives, a collection of all the news and posts”;
    $samsung_Pages = “Articles, and content.”;

    register_sidebar(array(
    ‘before_widget’ => ‘<div id=”right-red”><div id=”right-red-top”>’,
    ‘after_widget’ => ‘<div id=”right-red-bottom”></div></div>’,
    ‘before_title’ => ‘<div id=”right-red-title”>’,
    ‘after_title’ => ‘</div><div id=”right-red-text”><?php echo “$samsung_%1$s”; ?></div></div>

      ‘,
      ));′

    See, I created three new variables for my widgets functions.php, so… I want the code “php echo $samsung_Pages” to show what I declared on the variable above, I will later change this to _Blogroll and _Archives using the widget Title being the code: %1$s.

    Considering the title is Blogroll, Pages and Archives, everything should work fine.

    But the only thing that trouble me is that I don’t know how to output / show the content of the variables above at that specific field.

    Please help ^^

  • The topic ‘need help from PHP programmer, beginer question’ is closed to new replies.