• GerryBean

    (@gerrybean)


    I don’t know if I’m in the right place for this question.
    I’m migrating a VERY old website to WordPress.
    The files on the old website are mostly php files (some are pdfs)
    I’d like to bring those files over to wordpress and find a way for the php files to display on individual webpages.
    I’m testing that now… I have a folder with a .php file and I can bring it up in a browser just fine but can’t figure out how to bring it into my wordpress template.
    Any help?
    Thanks
    Gerry

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Can you copy the content into posts or pages on your WP install? It’s the simplest solution.

    Thread Starter GerryBean

    (@gerrybean)

    We started down that path with very good success but the number of files is VERY extensive and there’s limited resources to make that all happen..
    I’m looking for a way to upload all the php files (from a backup) to the appropriate folders in wordpress then just bring them up via links.

    esmi

    (@esmi)

    WordPress stores content in its database – not within .php files.

    Thread Starter GerryBean

    (@gerrybean)

    Understand that.
    I have a boatload of articles stored as .php files.
    I want to upload those articles/php files into a newly created ‘articles’ folder.
    I then want to have a link on a webpage that brings up that article from within that folder so it displays on a webpage within my website.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Thread Starter GerryBean

    (@gerrybean)

    That would work getting the files where they need to be but I’m not still convinced that a php file would display properly within my wordpress template.

    Just as a test, I created a folder and uploaded php file.
    I created a webpage with a link to that php file.
    The php file came up just fine but not within the wordpress template.
    I’m looking for a way for it to look like every other webpage on my site.

    Michael

    (@southstationmedia)

    You’d have to use some sort of plugin to include php scripts right into your posts/pages. I’ve used PHP SNIPPETS with some success. Basically you upload all your php files to a ‘snippet’ directory I believe its called and you can call those files within a post/page using short code. Pretty easy and the support docs are decent.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Upload/display PHP files within webpage’ is closed to new replies.