• Hi! Im a new WordPress user. I couldnt easily find this in the docs, but im sure its there somewhere….

    I want to have a page or post with HTML dynamically from an external source inserted into it. For example, if i have a database of my CD collection, and i have a program called “latest_CDs.pl” on my website that generates somethng like

    <b>The Beatles</b> <i>Abbey Road</i> purchased 28 October 2008

    Then i want a page on my blog called “My latest CDs”, that i dont have to touch because i keep track of it in a seperete database. How do i link to this from a WP post or page so that this data is seemlessly put into the page? The URL could be https://mysite.com/cgi-bin/latest_CDs.pl or something.

    Basically i sort of want to have an SSI in the blog.

    Thanks!

    Jen

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jen-n

    (@jen-n)

    Hi! Im a new WordPress user. I couldnt easily find this in the docs, but im sure its there somewhere….

    I want to have a page or post with HTML dynamically from an external source inserted into it. For example, if i have a database of my CD collection, and i have a program called “latest_CDs.pl” on my website that generates somethng like

    <b>The Beatles</b> <i>Abbey Road</i> purchased 28 October 2008

    Then i want a page on my blog called “My latest CDs”, that i dont have to touch because i keep track of it in a seperete database. How do i link to this from a WP post or page so that this data is seemlessly put into the page? The URL could be https://mysite.com/cgi-bin/latest_CDs.pl or something.

    Basically i sort of want to have an SSI in the blog.

    Thanks!

    Jen

    First have a look at Pages in the docs section. The key take-away there is that each WordPress Page can have its own Page Template.

    Now you just want to create a page template and then add the code to pull in your data. Next, create a WordPress Page and choose the new template for it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inserting external HTML into page’ is closed to new replies.