• This php snippet (PHP-Include-Snippet) does not work inside the Graphene theme of WordPress, although it works in a static php webpage.

    <?php
    include($_SERVER[‘DOCUMENT_ROOT’].’/m/nlinks.php’);

    It’s just a simple list of links.

    Another simple date snippet however, works alright:

    <?php
    $today = date(“Y-m-d”);
    echo $today;

    What could be the reasaon it doesn’t work?

    I’m using the XYZ PHP Code plugin for those.

    https://share.getcloudapp.com/Z4urxzRQ

    /
    with best regards, Omar KN, Stockholm, Sweden

    • This topic was modified 3 years, 1 month ago by omarkn2.

    The page I need help with: [log in to see the link]

  • The topic ‘php snippet not working, although on static page ok’ is closed to new replies.