WordPress.org

Ready to get started?Download WordPress

Forums

How to handle "other" files. (6 posts)

  1. telavir
    Member
    Posted 5 months ago #

    I'm considering installing WP, but my old, hand coded site has a lot of "other" files sitting in odd directories:

    • XML Directory - Accessed by other sites.
    • PDF Directory - Linked to by internal & external links.
    • Archives - Linked to by internal & external links.
    • Images - With external links so the URL shouldn't change.

    I'm trying to figure out how to make sure these are properly handled before making the switch. In short I need to make sure the files are accessible, linkable with static URLs. How would you excellent folk handle this?

  2. The Grey Parrots
    Member
    Posted 5 months ago #

    Hi,

    You may use custom post types to maintain other files and create directory too.

    Thanks
    PD

  3. telavir
    Member
    Posted 5 months ago #

    So, if I were to create a custom post for an XML file in a custom directory an outside site could link to it and the raw XML file would load? Or would the XML file wrapped in the wordpress template load?

  4. The Grey Parrots
    Member
    Posted 5 months ago #

    Hi,

    That depends upon the functionality you want to develop. You can upload the xml or link it to an external xml url or both.

    Thanks
    PD

  5. telavir
    Member
    Posted 5 months ago #

    The main functionality I need for these "other" files is to be able to include them on other sites through iframes or links or through other methods of including each one on a page.

    Example: I created an XML widget that will display a daily comic strip. A third party system on a seperate site needs to access the file on mywebsite.com via a static link. So by making an iframe with the link mywebsite.com/widgets/comic-widget.xml they can have the comic display on their site. How would this work after I've installed WordPress?

  6. The Grey Parrots
    Member
    Posted 5 months ago #

    Yes, that's possible.

    One way is to create custom post type and enable this features.

Reply

You must log in to post.

About this Topic