Tag Info

New answers tagged

0

I have just upgraded a large WordPress site through a number of environments, taking each one completely offline whilst I performed the upgrade. We're using IIS as the web server, but since I appreciate most people use Apache, I'll try and keep the steps as generic as possible to apply to both setups. These are the steps: Take site offline (bear in mind ...


0

login to localhost/phpMyAdmin and create dump of your DB Configure XAMPP and install clean Wordpress Import dump of your old DB to new Wordpress Change site_url and 'homeinwp_options` table Copy all your plugins from plugins folder and themes from themes folder Copy all uploaded files from `uploads' folder Check if everything goes well. Those points are ...


1

WordPress com doesn't allow you to upload any customization, other than CSS via their paid customization feature. Notably you can download WordPress com themes (link is available in sidebar of theme info page) and use them in self hosted installation. However, given that WP com doesn't provide source for much of its environment, it's unlikely that you would ...


1

You're failing to copy the database. Use the Duplicator plugin to create a copy of the entire site including the database. It will produce an archive zip file and an installer.php file (renaming it to installer.php is best). Copy them both to the local directory on the new PC. Use phpmyadmin to create a new database for the site on the new PCI and navigate ...


1

You have missed to copy the database associated with WordPress install. Go to PHPmyAdmin(http://localhost/phpmyadmin), Select the database and click Export all the tables. In your other PC, Go to PHPmyAdmin, Create new user and a database. Import the file that was downloaded while exporting.


0

I just lost all my theme settings when transferring from localhost to server. Then I discovered in my Appearance | Theme Settings an option to Import/Export code. I think you can use this to transfer settings from within the Theme options panel. I didn't try it cos I had already set everything up again. But might be handy for another transfer installation.


0

Although the accepted answer looks to be a good one, just changing WP_SITEURL/WP_HOME doesn't work in my case because there always ends up being lots of absolute links in the text content on pages (i.e. images or links added through the WYSIWYG editor). In other words, I pretty much have to use the same domain if I want the site to work properly. So in case ...


4

You can use wp-config.php to change the site url depending on where the site is accesed from, using $_SERVER['REMOTE_ADDR']. Mine has something like this: if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1' || $_SERVER['REMOTE_ADDR'] == '::1') { // accesing site from my local server define('WP_SITEURL', 'http://localhost/mysite/'); define('WP_HOME', ...


1

Concur with @perpetualstudent about offline development. If you start by installing on the webserver, then always copy in the direction of your PC dev you won't be overriding user data. There are two fields in wp_options table that need to be modified each time you copy the database, these are siteurl and home that need to change to point to your local PC ...


1

In WordPress, the footer scripts are enqueued using wp_enqueue_scripts into wp_footer(). So it is hard for you to find the direct scripts link in footer.php. To change the path you can go to PHPmyAdmin and edit the siteurl and home fields in options table of your database. You can include jQuery from CDN using the following code: // Register Script ...


2

get_template_directory() returns a filesystem path-- that is, it returns the path to the file as it would appear if you were browsing it on the local machine via a file browser. Return Values (string) Absolute path to the directory of the current theme (without the trailing slash). ...



Top 50 recent answers are included