Migrating existing PHP
-
Let me first introduce myself as a novice WordPress user. I have coded in PHP and HTML before, so I have some background in creating web applications. However my knowledge of using WordPress has been pretty limited to adding plugins, changing themes, slightly modifying theme/plugin files, and creating very basic plugins (such as a custom poll).
I have been assigned by my employer to migrate an existing site of theirs to a WordPress installation they created. Most of the site was basic HTML and easily moved, but there is one section that relies on a lot of PHP and JS to function. My initial thought was to design a plugin that could import the functionality of those pages, but that has proven to be more difficult than I thought.
So far I know I can create a shortcode to call on a new page within WordPress that builds some of the HTML, but linking their existing PHP, CSS, and JS files to that page have been evading me. I understand the use of
wp_register_andwp_enqueue_and howadd_action('wp_enqueue_scripts','$handle')is supposed to work for importing JS and CSS. I have not successfully been able to import any existing CSS or JS files. Nor do I have any idea about how to bring in the few thousand (seriously) PHP files that run some of the backend to this site.http://redridgewhitetails.com/pedigrees/ — That is the existing site.
http://redridgewhitetails.com/2014site/pedigrees/buck-pedigrees/ — Is the new site. You can see by using an iframe they can do a little hack around WordPress, but that is not the solution they want.
Sorry for the wall of text, I tried to be as detailed as possible. I would appreciate any feedback or suggestions possible. I have poured over documentation and other forum posts to no avail.
The topic ‘Migrating existing PHP’ is closed to new replies.