Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Mark709

    (@mark709)

    pardon my typing error of variable8? should of course be variable */
    Thanks

    Thread Starter Mark709

    (@mark709)

    Thanks for your reply. I did try this however have a fatal error.
    This is what I did.
    I ignore the Header file and in the included php file (see initial post above) I inserted the line (as you suggested in your kind reply) bloginfo(‘name’) and got the
    “fatal error: call to undefined function bloginfo()”.
    .
    Discussion – yes I do agree with you the variable should be available.
    In my database it seems the table is called wp_options (and I assume this is common for all STANDARD installations of WP – a great advantage for us all) and the field name is blogname.
    Is my assumption correct?
    .
    My REVISED CODE now reads
    .
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; xml:lang=”en”>
    <?php
    include(“file_name.php”);

    /* $site2=$_POST[‘site2’]; */
    /* $site2=”BestHolidaySite”; */ /* WORKS WHEN INCLUDED – and NOT REPLACED */

    bloginfo(‘name’) /* inserted as suggested by Ipstenu 2010/12/29 */
    /* but I get FATAL ERROR – see above */
    /* and if it were to work how do I get bloginfo(‘name’) value into $site2 variable8?
    /* is it correct to type … $site2=blog(‘name’) or is this wrong ??? */

    /* $site2 = get_site_url($name); */ /* LINE NOT WORKING */
    /* the above line should replace the line 2 above */

    $email=$_POST[’email’];
    $known_as=$_POST[‘known_as’];
    ….. then
    ….. down to POST etc
    ….. apart from that THIS FILE WORKS

    Thread Starter Mark709

    (@mark709)

    Thanks for your advice.
    I did email Daniel directly and he informed me that his site theme was proprietary so I am looking around for others and have found one I like (though not as much as Daniels’).
    Have already swapped emails with the creator who has agreed to make some minor changes to suit my needs.

Viewing 3 replies - 1 through 3 (of 3 total)