• This is a really basic PHP question: what is the syntax for calling an external script from within a WP template?

    I’d like to integrate phpMyQuote with the rest of my site, but I’m not sure how.

    Many thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am calling my horizontal menu like this:
    <?php include (TEMPLATEPATH . '/horizontal.php'); ?>
    and the searchform in a similar way:
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    …provided the files are in the theme directory.

    Thread Starter hooopla

    (@hooopla)

    Thank you, moshu. I’ll give it a shot.

    I’m trying this, where exactly do I put this code? In the main template page code? Or in my page contents?

    I am trying to insert a form, to submit commits directly, via email!

    clfarris, it would depend on where you want to display it. If it’s on a Page (as in Write > Pages), you could create a Page template and add the code to it (or you can include the php file). Then assign the template to your Page by editing the Page and selecting the template from the Page Template dropdown. Look at the template info on the Codex page covering Pages:

    http://codex.ww.wp.xz.cn/Pages

    Google cache of page above:
    http://72.14.207.104/search?q=cache:Z_tEo1pA4fQJ:codex.ww.wp.xz.cn/Pages

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

The topic ‘Calling external PHP script from within WP’ is closed to new replies.