SlideShare a Scribd company logo
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

More Related Content

What's hot

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
 
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...
lcstephenson
 
Ppi Claim Companies UK
Ppi Claim Companies UKPpi Claim Companies UK
Ppi Claim Companies UK
Nathan Wynne
 
Optimizing Facebook Campaigns with R
Optimizing Facebook Campaigns with ROptimizing Facebook Campaigns with R
Optimizing Facebook Campaigns with R
Domino Data Lab
 
Philadelphianursinghomeabusestatistics
PhiladelphianursinghomeabusestatisticsPhiladelphianursinghomeabusestatistics
Philadelphianursinghomeabusestatistics
Michael Murray
 
Statelistworkerscompensationbenefitsphilhq
StatelistworkerscompensationbenefitsphilhqStatelistworkerscompensationbenefitsphilhq
Statelistworkerscompensationbenefitsphilhq
Michael Murray
 
Hmmmmmmmmm
HmmmmmmmmmHmmmmmmmmm
Hmmmmmmmmm
Erin Hansen
 
Personal research environment presentation
Personal research environment presentationPersonal research environment presentation
Personal research environment presentation
Daniela Gachago
 
Top Pst Backup Tool
Top Pst Backup ToolTop Pst Backup Tool
Top Pst Backup Tool
Backup PST
 
Backlinks Examples PR7-10
Backlinks Examples PR7-10Backlinks Examples PR7-10
Backlinks Examples PR7-10
Kieran Pitt
 
Visualizing the 2017 BC Election
Visualizing the 2017 BC ElectionVisualizing the 2017 BC Election
Visualizing the 2017 BC Election
Frank Hangler
 
Website analytics beyond your presentation
Website analytics beyond your presentationWebsite analytics beyond your presentation
Website analytics beyond your presentation
pbrolley
 
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
Chris Taggart
 
Online Marketing For Financial Planners
Online Marketing For Financial PlannersOnline Marketing For Financial Planners
Online Marketing For Financial Planners
Kate Dore
 
Appendix 1a
Appendix 1aAppendix 1a
Appendix 1a
Reshma Francis
 
Philadelphiatypesofcompensationandbenefigt8k
Philadelphiatypesofcompensationandbenefigt8kPhiladelphiatypesofcompensationandbenefigt8k
Philadelphiatypesofcompensationandbenefigt8k
Michael Murray
 
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
Kristi Casey Sanders, CMP, CMM, DES, HMCC
 
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
Nate Kogan
 

What's hot (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 to Getting to WordPress

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
iMasters
 
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
iMasters
 
Rethinking digital citizenship
Rethinking digital citizenshipRethinking digital citizenship
Rethinking digital citizenship
Dean Shareski
 
Accessibility
AccessibilityAccessibility
Accessibility
stevierocco
 
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
Kate Matsudaira
 
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
Jonathon Hare
 
Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501
Bryan Mccarthy
 
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
 
Understanding and Implementing Website Security
Understanding and Implementing Website SecurityUnderstanding and Implementing Website Security
Understanding and Implementing Website Security
Drew Gorton
 
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
Clint Hamada
 
Challenging Your Assumptions
Challenging Your AssumptionsChallenging Your Assumptions
Challenging Your Assumptions
Kristina Fox
 
Open Source Data Integration
Open Source Data IntegrationOpen Source Data Integration
Open Source Data Integration
Carin Meier
 
Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501Mc carthy bryan_ppp_pcp_1501
Mc carthy bryan_ppp_pcp_1501
Bryan Mccarthy
 
Referensi
ReferensiReferensi
Love in the wild
Love in the wildLove in the wild
Love in the wild
Ian Forrester
 
CurrentCost
CurrentCostCurrentCost
CurrentCost
Dale Lane
 
Digital IUPAC: The need for global representation of chemistry and chemical i...
Digital IUPAC: The need for global representation of chemistry and chemical i...Digital IUPAC: The need for global representation of chemistry and chemical i...
Digital IUPAC: The need for global representation of chemistry and chemical i...
Jeremy Frey
 
Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)
Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)
Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)
Jonathon Hare
 
Data Scientist's Daily Life
Data Scientist's Daily LifeData Scientist's Daily Life
Data Scientist's Daily Life
Bryan Yang
 
2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...
2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...
2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...
Crossref
 

Similar to 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
 
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
 
Love in the wild
Love in the wildLove in the wild
Love in the wild
 
CurrentCost
CurrentCostCurrentCost
CurrentCost
 
Digital IUPAC: The need for global representation of chemistry and chemical i...
Digital IUPAC: The need for global representation of chemistry and chemical i...Digital IUPAC: The need for global representation of chemistry and chemical i...
Digital IUPAC: The need for global representation of chemistry and chemical i...
 
Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)
Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)
Mining Events from Multimedia Streams (WAIS Research group seminar June 2014)
 
Data Scientist's Daily Life
Data Scientist's Daily LifeData Scientist's Daily Life
Data Scientist's Daily Life
 
2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...
2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...
2013 CrossRef Annual Meeting Building Skyscrapers With Our Scholarship Heathe...
 

More from Stephanie Leary

WordPress for the 99%
WordPress for the 99%WordPress for the 99%
WordPress for the 99%
Stephanie Leary
 
Content First in Action
Content First in ActionContent First in Action
Content First in Action
Stephanie Leary
 
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
Stephanie Leary
 
Content Strategy for WordPress: Case Study
Content Strategy for WordPress: Case StudyContent Strategy for WordPress: Case Study
Content Strategy for WordPress: Case Study
Stephanie Leary
 
Content Strategy for WordPress
Content Strategy for WordPressContent Strategy for WordPress
Content Strategy for WordPress
Stephanie Leary
 
There's a Plugin for That
There's a Plugin for ThatThere's a Plugin for That
There's a Plugin for That
Stephanie Leary
 
The WordPress University 2012
The WordPress University 2012The WordPress University 2012
The WordPress University 2012
Stephanie Leary
 
Keeping It Simple
Keeping It SimpleKeeping It Simple
Keeping It Simple
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
 
Tricky Migrations
Tricky MigrationsTricky Migrations
Tricky Migrations
Stephanie Leary
 
Importing & Migrating
Importing & MigratingImporting & Migrating
Importing & Migrating
Stephanie Leary
 
WordPress Hidden Gems
WordPress Hidden GemsWordPress Hidden Gems
WordPress Hidden Gems
Stephanie Leary
 
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)
Stephanie Leary
 
I'm with Stupid
I'm with StupidI'm with Stupid
I'm with Stupid
Stephanie Leary
 
Social Media for Researchers
Social Media for ResearchersSocial Media for Researchers
Social Media for Researchers
Stephanie Leary
 
WordPress as a CMS (short version)
WordPress as a CMS (short version)WordPress as a CMS (short version)
WordPress as a CMS (short version)
Stephanie Leary
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
Stephanie Leary
 

More from 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
 

Recently uploaded

Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 

Recently uploaded (20)

Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.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