SlideShare una empresa de Scribd logo
1 de 45
G E T T I N G T O
W O R D P R E S S
W P C A M P U S 2 0 1 6
https://www.flickr.com/photos/rogersmj/3529152061/
Stephanie Leary
@sleary
sleary.me/wpcampus2016
M O V I N G S U C K S .
https://www.flickr.com/photos/picturesofthings/3276020078/
I M P O R T
P L U G I N S
H T T P : / / C O D E X . W O R D P R E S S . O R
G / I M P O R T I N G _ C O N T E N T
https://www.flickr.com/photos/sisterdanger/24773994365/
I M P O R T
S E R V I C E S
https://www.flickr.com/photos/travosaurus/14805424435
I M P O R T A N Y T H I N G
Y O U G O T T H I S
T I D Y D A T A B A S E
https://www.flickr.com/photos/telstar/6859351675/
W P A L L I M P O R T
O P T I O N 1 :
W P A L L I M P O R T
O P T I O N 1 :
W P A L L I M P O R T
O P T I O N 1 :
W P A L L I M P O R T
O P T I O N 1 :
W P A L L I M P O R T
O P T I O N 1 :
W P A L L I M P O R T
O P T I O N 1 :
S T A T I C F I L E S
https://www.flickr.com/photos/catjannik/381162608/
H T M L I M P O R T
O P T I O N 2 :
H T M L I M P O R T
O P T I O N 2 :
H T M L I M P O R T
O P T I O N 2 :
H T M L I M P O R T
O P T I O N 2 :
H T M L I M P O R T
O P T I O N 2 :
H T M L I M P O R T
O P T I O N 2 :
H T M L I M P O R T
O P T I O N 2 :
H T M L I M P O R T
O P T I O N 2 :
D I Y
https://www.flickr.com/photos/catjannik/381162608
D I Y I M P O R T E R
1. Fetch data from <somewhere>
2. Loop through each item
3. Assemble pieces into $post array
4. wp_insert_post()
5. wp_set_post_terms()
6. add_post_meta()
O P T I O N 3 :
D I Y I M P O R T E R
foreach ( $things as $thing ) {
$post = array();
$post['post_content'] = $thing->content;
$post['post_status'] = $thing->status;
$post['post_title'] = $thing->title;
wp_insert_post( $post );
}
O P T I O N 3 :
R E A D Y T O
G O ?
https://www.flickr.com/photos/brad_frost/9159754008/
1 . C O N T E N T M O D E L
MIRROR OR IMPROVE:
• Custom post types
• Custom fields
• Taxonomies
1 . C O N T E N T M O D E L
INCLUDE FIELDS:
• IDs
• Paths
• Author ID or email
1 . C O N T E N T M O D E L
D I Y C O D E
1 . C O N T E N T M O D E L
C U S T O M P O S T T Y P E U I P L U G I N
1 . C O N T E N T M O D E L
A D V A N C E D C U S T O M F I E L D S P L U G I N
2 . E X P O R T
https://www.flickr.com/photos/booleansplit/7286682184/
2 . E X P O R T
CHECK:
• HTML vs plain text fields
• Date formatting
• Character encoding
• Commas in tags / categories / terms
• Relative link & image paths
3 . S T A G I N G
• Give PHP ALL THE MEMORY
• Turn off plugins, publicize tools, etc.
• Back up both databases
• Warn system administrators
G O
A S S E S S
T H E M E S S
https://www.flickr.com/photos/glenscott/3388493598/
P O S T - I M P O R T P L U G I N S
• Search and Replace
• Post Type Switcher / Convert Post Types
• Term Management Tools
• Add Linked Images to Gallery
• Admin Columns
• Content Audit
C L E A N U P E X A M P L E
1. WP All Export custom field
2. WP All Import the field as term
3. Merge duplicates & typos w/Term Management Tools
A D M I N C O L U M N S
P L U G I N
F A S T R E V I E W I N G
R E D I R E C T S
https://www.flickr.com/photos/nnova/8227348112/
R E D I R E C T O P T I O N S
1. .htaccess
2. Redirection plugin
3. DIY code
http://stephanieleary.com/?p=8220
. h t a c c e s s
R E D I R E C T I O N P L U G I N
D I Y R E D I R E C T S
add_filter( 'redirect_canonical', 'my_404_no_guessing', 10, 2 );
function my_404_no_guessing( $redirect_url, $request_url ) {
if ( is_404() ) {
$posts = get_posts( array(
'meta_key' => 'URL_before_HTML_Import',
'meta_value' => $request_url,
'post_type' => 'any',
'posts_per_page' => 1,
'fields' => 'ids',
) );
if ( $posts ) {
$redirect_url = get_permalink( array_pop( $posts ) );
}
else
return false;
}
return $redirect_url;
}
H T M L I M P O R T
add_filter( 'redirect_canonical', 'my_404_no_guessing', 10, 2 );
function my_404_no_guessing( $redirect_url, $request_url ) {
if ( is_404() ) {
$posts = get_posts( array(
'meta_key' => 'drupal_path',
'meta_value' => parse_url( $request_url, PHP_URL_PATH ),
'post_type' => 'any',
'posts_per_page' => 1,
'fields' => 'ids',
) );
if ( $posts ) {
$redirect_url = get_permalink( array_pop( $posts ) );
}
else
return false;
}
return $redirect_url;
}
D I Y R E D I R E C T S
D R U P A L / W P A L L I M P O R T
S T E P H A N I E L E A R Y . C O M @ S L E A R Y

Más contenido relacionado

La actualidad más candente

South Florida WordPress Meetup: Top 9 (Dec 2013)
South Florida WordPress Meetup: Top 9 (Dec 2013)South Florida WordPress Meetup: Top 9 (Dec 2013)
South Florida WordPress Meetup: Top 9 (Dec 2013)
David Bisset
 

La actualidad más candente (18)

South Florida WordPress Meetup: Top 9 (Dec 2013)
South Florida WordPress Meetup: Top 9 (Dec 2013)South Florida WordPress Meetup: Top 9 (Dec 2013)
South Florida WordPress Meetup: Top 9 (Dec 2013)
 
What is RSS and Why Should I Care? A Presentation for Educators and School Ad...
What is RSS and Why Should I Care? A Presentation for Educators and School Ad...What is RSS and Why Should I Care? A Presentation for Educators and School Ad...
What is RSS and Why Should I Care? A Presentation for Educators and School Ad...
 
Ppi Claim Companies UK
Ppi Claim Companies UKPpi Claim Companies UK
Ppi Claim Companies UK
 
Optimizing Facebook Campaigns with R
Optimizing Facebook Campaigns with ROptimizing Facebook Campaigns with R
Optimizing Facebook Campaigns with R
 
Philadelphianursinghomeabusestatistics
PhiladelphianursinghomeabusestatisticsPhiladelphianursinghomeabusestatistics
Philadelphianursinghomeabusestatistics
 
Statelistworkerscompensationbenefitsphilhq
StatelistworkerscompensationbenefitsphilhqStatelistworkerscompensationbenefitsphilhq
Statelistworkerscompensationbenefitsphilhq
 
Hmmmmmmmmm
HmmmmmmmmmHmmmmmmmmm
Hmmmmmmmmm
 
Personal research environment presentation
Personal research environment presentationPersonal research environment presentation
Personal research environment presentation
 
Top Pst Backup Tool
Top Pst Backup ToolTop Pst Backup Tool
Top Pst Backup Tool
 
Backlinks Examples PR7-10
Backlinks Examples PR7-10Backlinks Examples PR7-10
Backlinks Examples PR7-10
 
Visualizing the 2017 BC Election
Visualizing the 2017 BC ElectionVisualizing the 2017 BC Election
Visualizing the 2017 BC Election
 
Website analytics beyond your presentation
Website analytics beyond your presentationWebsite analytics beyond your presentation
Website analytics beyond your presentation
 
How The Open Data Community Died - A Warning From The Future
How The Open Data Community Died - A Warning From The FutureHow The Open Data Community Died - A Warning From The Future
How The Open Data Community Died - A Warning From The Future
 
Online Marketing For Financial Planners
Online Marketing For Financial PlannersOnline Marketing For Financial Planners
Online Marketing For Financial Planners
 
Appendix 1a
Appendix 1aAppendix 1a
Appendix 1a
 
Philadelphiatypesofcompensationandbenefigt8k
Philadelphiatypesofcompensationandbenefigt8kPhiladelphiatypesofcompensationandbenefigt8k
Philadelphiatypesofcompensationandbenefigt8k
 
Social Media 201: Content Curation, Time Management and Audience Engagement
Social Media 201: Content Curation, Time Management and Audience EngagementSocial Media 201: Content Curation, Time Management and Audience Engagement
Social Media 201: Content Curation, Time Management and Audience Engagement
 
Our students won_t_research_the_way_we_did
Our students won_t_research_the_way_we_didOur students won_t_research_the_way_we_did
Our students won_t_research_the_way_we_did
 

Similar a Getting to WordPress

Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011
Juan Sequeda
 

Similar a Getting to WordPress (20)

InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266
InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266
InterCon 2016 - Internet of “Thinking” – IoT sem BS com ESP8266
 
InterCon 2016 - Blockchain e smart-contracts em Ethereu
InterCon 2016 - Blockchain e smart-contracts em EthereuInterCon 2016 - Blockchain e smart-contracts em Ethereu
InterCon 2016 - Blockchain e smart-contracts em Ethereu
 
Rethinking digital citizenship
Rethinking digital citizenshipRethinking digital citizenship
Rethinking digital citizenship
 
Accessibility
AccessibilityAccessibility
Accessibility
 
The Science of a Great Career in Data Science
The Science of a Great Career in Data ScienceThe Science of a Great Career in Data Science
The Science of a Great Career in Data Science
 
SEWM'14 keynote: Mining Events from Multimedia Streams
SEWM'14 keynote: Mining Events from Multimedia StreamsSEWM'14 keynote: Mining Events from Multimedia Streams
SEWM'14 keynote: Mining Events from Multimedia Streams
 
Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501
 
Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011
 
Understanding and Implementing Website Security
Understanding and Implementing Website SecurityUnderstanding and Implementing Website Security
Understanding and Implementing Website Security
 
Bridging the Gap - The Future of Learning
Bridging the Gap - The Future of LearningBridging the Gap - The Future of Learning
Bridging the Gap - The Future of Learning
 
Challenging Your Assumptions
Challenging Your AssumptionsChallenging Your Assumptions
Challenging Your Assumptions
 
How GZIP compression works - JS Conf EU 2014
How GZIP compression works - JS Conf EU 2014How GZIP compression works - JS Conf EU 2014
How GZIP compression works - JS Conf EU 2014
 
Open Source Data Integration
Open Source Data IntegrationOpen Source Data Integration
Open Source Data Integration
 
Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501
 
Referensi
ReferensiReferensi
Referensi
 
L'alphabet
L'alphabetL'alphabet
L'alphabet
 
Caver la chele_final
Caver la chele_finalCaver la chele_final
Caver la chele_final
 
Love in the wild
Love in the wildLove in the wild
Love in the wild
 
James Goodwin Final PPP Slideshow
James Goodwin Final PPP SlideshowJames Goodwin Final PPP Slideshow
James Goodwin Final PPP Slideshow
 
CurrentCost
CurrentCostCurrentCost
CurrentCost
 

Más de Stephanie Leary

The WordPress University 2012
The WordPress University 2012The WordPress University 2012
The WordPress University 2012
Stephanie Leary
 
The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
Stephanie Leary
 
WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
Stephanie Leary
 
WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)
Stephanie Leary
 
Social Media for Researchers
Social Media for ResearchersSocial Media for Researchers
Social Media for Researchers
Stephanie Leary
 

Más de Stephanie Leary (19)

WordPress for the 99%
WordPress for the 99%WordPress for the 99%
WordPress for the 99%
 
Content First in Action
Content First in ActionContent First in Action
Content First in Action
 
Writing for the Web in Government and Education
Writing for the Web in Government and EducationWriting for the Web in Government and Education
Writing for the Web in Government and Education
 
Content Strategy for WordPress: Case Study
Content Strategy for WordPress: Case StudyContent Strategy for WordPress: Case Study
Content Strategy for WordPress: Case Study
 
Content Strategy for WordPress
Content Strategy for WordPressContent Strategy for WordPress
Content Strategy for WordPress
 
There's a Plugin for That
There's a Plugin for ThatThere's a Plugin for That
There's a Plugin for That
 
The WordPress University 2012
The WordPress University 2012The WordPress University 2012
The WordPress University 2012
 
Keeping It Simple
Keeping It SimpleKeeping It Simple
Keeping It Simple
 
The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
 
WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
 
WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)
 
Tricky Migrations
Tricky MigrationsTricky Migrations
Tricky Migrations
 
Importing & Migrating
Importing & MigratingImporting & Migrating
Importing & Migrating
 
WordPress Hidden Gems
WordPress Hidden GemsWordPress Hidden Gems
WordPress Hidden Gems
 
What's New in WordPress 3.0 (for developers)
What's New in WordPress 3.0 (for developers)What's New in WordPress 3.0 (for developers)
What's New in WordPress 3.0 (for developers)
 
I'm with Stupid
I'm with StupidI'm with Stupid
I'm with Stupid
 
Social Media for Researchers
Social Media for ResearchersSocial Media for Researchers
Social Media for Researchers
 
WordPress as a CMS (short version)
WordPress as a CMS (short version)WordPress as a CMS (short version)
WordPress as a CMS (short version)
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 

Getting to WordPress

  • 1. G E T T I N G T O W O R D P R E S S W P C A M P U S 2 0 1 6 https://www.flickr.com/photos/rogersmj/3529152061/ Stephanie Leary @sleary sleary.me/wpcampus2016
  • 2. M O V I N G S U C K S . https://www.flickr.com/photos/picturesofthings/3276020078/
  • 3. I M P O R T P L U G I N S H T T P : / / C O D E X . W O R D P R E S S . O R G / I M P O R T I N G _ C O N T E N T https://www.flickr.com/photos/sisterdanger/24773994365/
  • 4. I M P O R T S E R V I C E S https://www.flickr.com/photos/travosaurus/14805424435
  • 5. I M P O R T A N Y T H I N G Y O U G O T T H I S
  • 6. T I D Y D A T A B A S E https://www.flickr.com/photos/telstar/6859351675/
  • 7. W P A L L I M P O R T O P T I O N 1 :
  • 8. W P A L L I M P O R T O P T I O N 1 :
  • 9. W P A L L I M P O R T O P T I O N 1 :
  • 10. W P A L L I M P O R T O P T I O N 1 :
  • 11. W P A L L I M P O R T O P T I O N 1 :
  • 12. W P A L L I M P O R T O P T I O N 1 :
  • 13. S T A T I C F I L E S https://www.flickr.com/photos/catjannik/381162608/
  • 14. H T M L I M P O R T O P T I O N 2 :
  • 15. H T M L I M P O R T O P T I O N 2 :
  • 16. H T M L I M P O R T O P T I O N 2 :
  • 17. H T M L I M P O R T O P T I O N 2 :
  • 18. H T M L I M P O R T O P T I O N 2 :
  • 19. H T M L I M P O R T O P T I O N 2 :
  • 20. H T M L I M P O R T O P T I O N 2 :
  • 21. H T M L I M P O R T O P T I O N 2 :
  • 23. D I Y I M P O R T E R 1. Fetch data from <somewhere> 2. Loop through each item 3. Assemble pieces into $post array 4. wp_insert_post() 5. wp_set_post_terms() 6. add_post_meta() O P T I O N 3 :
  • 24. D I Y I M P O R T E R foreach ( $things as $thing ) { $post = array(); $post['post_content'] = $thing->content; $post['post_status'] = $thing->status; $post['post_title'] = $thing->title; wp_insert_post( $post ); } O P T I O N 3 :
  • 25. R E A D Y T O G O ? https://www.flickr.com/photos/brad_frost/9159754008/
  • 26. 1 . C O N T E N T M O D E L MIRROR OR IMPROVE: • Custom post types • Custom fields • Taxonomies
  • 27. 1 . C O N T E N T M O D E L INCLUDE FIELDS: • IDs • Paths • Author ID or email
  • 28. 1 . C O N T E N T M O D E L D I Y C O D E
  • 29. 1 . C O N T E N T M O D E L C U S T O M P O S T T Y P E U I P L U G I N
  • 30. 1 . C O N T E N T M O D E L A D V A N C E D C U S T O M F I E L D S P L U G I N
  • 31. 2 . E X P O R T https://www.flickr.com/photos/booleansplit/7286682184/
  • 32. 2 . E X P O R T CHECK: • HTML vs plain text fields • Date formatting • Character encoding • Commas in tags / categories / terms • Relative link & image paths
  • 33. 3 . S T A G I N G • Give PHP ALL THE MEMORY • Turn off plugins, publicize tools, etc. • Back up both databases • Warn system administrators
  • 34. G O
  • 35. A S S E S S T H E M E S S https://www.flickr.com/photos/glenscott/3388493598/
  • 36. P O S T - I M P O R T P L U G I N S • Search and Replace • Post Type Switcher / Convert Post Types • Term Management Tools • Add Linked Images to Gallery • Admin Columns • Content Audit
  • 37. C L E A N U P E X A M P L E 1. WP All Export custom field 2. WP All Import the field as term 3. Merge duplicates & typos w/Term Management Tools
  • 38. A D M I N C O L U M N S P L U G I N F A S T R E V I E W I N G
  • 39. R E D I R E C T S https://www.flickr.com/photos/nnova/8227348112/
  • 40. R E D I R E C T O P T I O N S 1. .htaccess 2. Redirection plugin 3. DIY code http://stephanieleary.com/?p=8220
  • 41. . h t a c c e s s
  • 42. R E D I R E C T I O N P L U G I N
  • 43. D I Y R E D I R E C T S add_filter( 'redirect_canonical', 'my_404_no_guessing', 10, 2 ); function my_404_no_guessing( $redirect_url, $request_url ) { if ( is_404() ) { $posts = get_posts( array( 'meta_key' => 'URL_before_HTML_Import', 'meta_value' => $request_url, 'post_type' => 'any', 'posts_per_page' => 1, 'fields' => 'ids', ) ); if ( $posts ) { $redirect_url = get_permalink( array_pop( $posts ) ); } else return false; } return $redirect_url; } H T M L I M P O R T
  • 44. add_filter( 'redirect_canonical', 'my_404_no_guessing', 10, 2 ); function my_404_no_guessing( $redirect_url, $request_url ) { if ( is_404() ) { $posts = get_posts( array( 'meta_key' => 'drupal_path', 'meta_value' => parse_url( $request_url, PHP_URL_PATH ), 'post_type' => 'any', 'posts_per_page' => 1, 'fields' => 'ids', ) ); if ( $posts ) { $redirect_url = get_permalink( array_pop( $posts ) ); } else return false; } return $redirect_url; } D I Y R E D I R E C T S D R U P A L / W P A L L I M P O R T
  • 45. S T E P H A N I E L E A R Y . C O M @ S L E A R Y