• sfama

    (@sfama)


    Hi to all!
    I’m creating a new wordpress template.
    I have to inert a swf file (flash content) that need to process results of wp_query.

    The solution I adopted is that the swf file inserted into index.php calls a new php file: test.php.
    test.php needs to make a call to wp_query function or to a function in function.php.

    I have a problem: my wordpress template doesn’t see test.php or test.php doesn’t see all the glopal parameter and function in function.php.

    Which is the best practice to add test.php to template?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not an expert for sure…would an include to test.php work for you?
    <?php include(TEMPLATEPATH . "/test.php"); ?>

    Thread Starter sfama

    (@sfama)

    I tried but it doesn’t work. The problem is that the test.php file returns an xml, that is the structure the swf file reads. So I cannot include the test.php file cause the xml return is displayed in the index.php page.

    So I’m looking for a way to include test.php between the template files. Or if someone tried, a different way to let communicate the swf module with php code.

    Silvia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add new php file’ is closed to new replies.