Skip to content

chodhary/theme-unit-data-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theme Unit Test Data Offline by Rajat Chodhary

My name is [Rajat Chodhary] (http://www.chodhary.com), and I am WordPress theme developer. I always look around find optimal solution to increase my productivity. If I am not developing wordpress theme then I am busy in review of new WordPress themes (On my own). If you appriciate my effort that follow me, and star this repo

As per WP-TRT guidelines, you need to download WordPress Theme Unit Test Data file from Theme Unit Test page. But, couple of the time importing fails ( most of the time on slow Internet Connection ). So, I have found a way around to make your life simple and less frustrating.

MAKE SURE THAT YOU'RE DISCONNECT FROM INTERNET ON YOUR DEVELOPMENT MACHINE / UNPLUG INTERNET :D

Use following steps for hassle free import:

  • Start with a fresh and clean [WordPress.org] (https://wordpress.org/download/) installation.
  • Download and extract latest version of WP [Theme Unit Test Data] (https://github.com/chodhary/theme-unit-data-test/archive/master.zip) archive from [github] (https://github.com/) repository.
  • Download and install WordPress Importer and Search and Replace plugins from Official WordPress Plugin repository.
  • Log in to your WordPress Dashboard. Go to Plugins > Add new instead of search use upload to install your downloaded plugin archive.
  • When your plugins installed, go to installed plugins and activate WordPress Importer, and Search and Replace.
  • Go ahead to Select Tools > Import from WordPress menu. On Import page, click WordPress, and on leading page click browse button. Guide and select theme-unit-test-data.xml from extracted folder.
  • On next page, you will be asked to assign user for imported posts and pages. Don’t do anything and leave as it is.
  • In Import attachments section/division, make sure to check download and import file attachments.
  • Once it is done, copy all content uploads/ folder from extracted archive folder and copy it to your wp-content/uploads/
  • Now, go to Tools > Search & Replace. On the page, in Search for input field – search for wpthemetestdata.wordpress.com and replace with localhost. Make sure that radio button next to All - search and replace! is checked.
  • Search again for wpthemetestdata.files.wordpress.com and replace with localhost/wp-content/uploads

NOTE: If you are importing localhost-theme-test.xml. Then, all you need is to import localhost-theme-test.xml and copy content of uploads/ to wp-content/uploads/ . And, you are ready to go.

I am extremely thankful to all you peoples, and WordPress.com, WordPress.org and Automattic team for giving such a great tool to Express Ourselves.

About

WordPress theme unit data test is a file which allow to introduce dummy text in WordPress installation to check for theme functionality and behavior

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published