SlideShare a Scribd company logo
DON’T TYPE IT OVER AND OVER
Chad Haefele
Interim Head of User Experience
UNC Chapel Hill Libraries
cHaefele@email.unc.edu
Working with Shortcodes in WordPress
Previously on Florida Library
Webinars…
https://floridalibrarywebinars.org/building-a-library-website-in-wordpress-ondemand/
Previously on Florida Library
Webinars…
https://floridalibrarywebinars.org/media-in-wordpress-ondemand/
HiddenPeanuts.com
bit.ly/wp4lib
Working with Shortcodes in WordPress
Working with Shortcodes in WordPress
Working with Shortcodes in WordPress
[BuildingPolicies]
What would you use one for?
•Policies
•Widgets
•Twitter
•Libraryh3lp
•Galleries
•Library hours
•Library events
Components of other plugins
• Formidable
• Elegant Themes
• $89/year
• 3D Viewer: [stl file="/2016/09/filename.stl" ]
Working with 3D Models
<img src =“wordpress.png”
alt=“WordPress logo”>
[audio]
[video]
.com usage
• Video
• en.support.wordpress.com/videos/
• Audio
• en.support.wordpress.com/audio/
.org usage (built-in)
• Video
• codex.wordpress.org/Audio_Shortcode
• Audio
• codex.wordpress.org/Video_Shortcode
• Other built-in shortcodes
• Caption
• Embed: https://codex.wordpress.org/Embeds
• Playlist: https://codex.wordpress.org/Playlist_Shortcode
• Gallery: https://codex.wordpress.org/Gallery_Shortcode
[gallery]
Installing & Using Shortcodes UI
wordpress.org/plugins/shortcodes-ui/
Build a basic text substitution shortcode
1. Put your reusable text in the top edit box
2. Set the ShortCode Type dropdown to Simple Snippet
3. Choose a ShortCode Tag – this is the text you’ll use to
trigger your Shortcode
4. Click the Publish button
5. Go put [YourShortcodeTag] somewhere in a Page or
Post.
Build a Twitter widget shortcode
1. Get the code for your Twitter widget from
twitter.com/settings/widgets
2. Put your Twitter widget code in the top edit box
3. Set the ShortCode Type dropdown to Simple Snippet
4. Choose a ShortCode Tag – this is the text you’ll use to
trigger your Shortcode
5. Click the Publish button
6. Go put [YourShortcodeTag] somewhere in a Page or
Post.
Enable shortcodes in WP widgets
WARNING! THIS COULD BREAK THINGS!
1. Under Appearance, go to Editor
2. Edit your functions.php file (it might be called Theme
Functions)
3. Add this code near the top of the file:
// Enable shortcodes in widgets
add_filter('widget_text', 'do_shortcode');
4. Click Update File
Alternatively, use this plugin:
wordpress.org/plugins/shortcode-widget/
Build a libraryh3lp shortcode (advanced!)
1. Set the ShortCode Type dropdown to Simple One Tag
ShortCode
2. Give your Shortcode this tag: libraryh3lp
3. Paste one of your libraryh3lp code snippets in the ShortCode
Template box
4. In your libraryh3lp snippet, replace the ID number with {id}
5. Scroll down to ShortCode Attributes, click the plus button
6. Fill in:
1. Name: id
2. Default Value: 0
7. Click Publish or Update
8. Find the id of the libraryh3lp snippet you want to embed
9. On any WordPress Page, put [libraryh3lp id=“1234”],
replacing your snippet ID as appropriate
[gallery]
[[gallery]]
HiddenPeanuts.com
bit.ly/wp4lib
https://floridalibrarywebinars.org/building-a-library-website-in-wordpress-ondemand/
https://floridalibrarywebinars.org/media-in-wordpress-ondemand/
DON’T TYPE IT OVER AND OVER
Chad Haefele
Interim Head of User Experience
UNC Chapel Hill Libraries
cHaefele@email.unc.edu
Working with Shortcodes in WordPress
Slides:
Ad

More Related Content

What's hot (20)

WordPress Plugin Development For Beginners
WordPress Plugin Development For BeginnersWordPress Plugin Development For Beginners
WordPress Plugin Development For Beginners
johnpbloch
 
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
 
Week 12 - Search Engine Optimization
Week 12 -  Search Engine OptimizationWeek 12 -  Search Engine Optimization
Week 12 - Search Engine Optimization
henri_makembe
 
Week 7 introduction to theme development
Week 7   introduction to theme developmentWeek 7   introduction to theme development
Week 7 introduction to theme development
henri_makembe
 
Wordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short TutorialWordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short Tutorial
Christos Zigkolis
 
Newspapers with WordPress
Newspapers with WordPressNewspapers with WordPress
Newspapers with WordPress
Christopher Ross
 
Week 11 - Hosting and Migration
Week 11 - Hosting and MigrationWeek 11 - Hosting and Migration
Week 11 - Hosting and Migration
henri_makembe
 
Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themes
henri_makembe
 
Week 5 - Introduction to plug-ins and widgets
Week 5 - Introduction to plug-ins and widgetsWeek 5 - Introduction to plug-ins and widgets
Week 5 - Introduction to plug-ins and widgets
henri_makembe
 
W pthemes
W pthemesW pthemes
W pthemes
Becky Davis
 
Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?
Edmund Turbin
 
Creating Drupal A Module
Creating Drupal A ModuleCreating Drupal A Module
Creating Drupal A Module
arcaneadam
 
Social Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP MeetupSocial Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP Meetup
Noel Saw
 
WordPress 3.4 Preview
WordPress 3.4 PreviewWordPress 3.4 Preview
WordPress 3.4 Preview
Noel Saw
 
WordPress developer 101
WordPress developer 101WordPress developer 101
WordPress developer 101
Cindy Cullen
 
Drupal Bootcamp Mcn2008
Drupal Bootcamp   Mcn2008Drupal Bootcamp   Mcn2008
Drupal Bootcamp Mcn2008
Robert J. Stein
 
Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08
Jamie Oastler
 
Working with WordPress in a Team Environment
Working with WordPress in a Team EnvironmentWorking with WordPress in a Team Environment
Working with WordPress in a Team Environment
Christopher Ross
 
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Jazkarta, Inc.
 
Saigon Wordpress Meetup - Themes Wordpress Meetup
Saigon Wordpress Meetup - Themes Wordpress MeetupSaigon Wordpress Meetup - Themes Wordpress Meetup
Saigon Wordpress Meetup - Themes Wordpress Meetup
Triết Sài Gòn
 
WordPress Plugin Development For Beginners
WordPress Plugin Development For BeginnersWordPress Plugin Development For Beginners
WordPress Plugin Development For Beginners
johnpbloch
 
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
 
Week 12 - Search Engine Optimization
Week 12 -  Search Engine OptimizationWeek 12 -  Search Engine Optimization
Week 12 - Search Engine Optimization
henri_makembe
 
Week 7 introduction to theme development
Week 7   introduction to theme developmentWeek 7   introduction to theme development
Week 7 introduction to theme development
henri_makembe
 
Wordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short TutorialWordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short Tutorial
Christos Zigkolis
 
Week 11 - Hosting and Migration
Week 11 - Hosting and MigrationWeek 11 - Hosting and Migration
Week 11 - Hosting and Migration
henri_makembe
 
Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themes
henri_makembe
 
Week 5 - Introduction to plug-ins and widgets
Week 5 - Introduction to plug-ins and widgetsWeek 5 - Introduction to plug-ins and widgets
Week 5 - Introduction to plug-ins and widgets
henri_makembe
 
Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?
Edmund Turbin
 
Creating Drupal A Module
Creating Drupal A ModuleCreating Drupal A Module
Creating Drupal A Module
arcaneadam
 
Social Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP MeetupSocial Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP Meetup
Noel Saw
 
WordPress 3.4 Preview
WordPress 3.4 PreviewWordPress 3.4 Preview
WordPress 3.4 Preview
Noel Saw
 
WordPress developer 101
WordPress developer 101WordPress developer 101
WordPress developer 101
Cindy Cullen
 
Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08
Jamie Oastler
 
Working with WordPress in a Team Environment
Working with WordPress in a Team EnvironmentWorking with WordPress in a Team Environment
Working with WordPress in a Team Environment
Christopher Ross
 
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Jazkarta, Inc.
 
Saigon Wordpress Meetup - Themes Wordpress Meetup
Saigon Wordpress Meetup - Themes Wordpress MeetupSaigon Wordpress Meetup - Themes Wordpress Meetup
Saigon Wordpress Meetup - Themes Wordpress Meetup
Triết Sài Gòn
 

Viewers also liked (20)

Maryland Summer Food
Maryland Summer FoodMaryland Summer Food
Maryland Summer Food
mambrosefrac
 
Что помогает животным выживать
Что помогает животным выживатьЧто помогает животным выживать
Что помогает животным выживать
RaikhanaM
 
Technology Use v. Technology Integration
Technology Use v. Technology IntegrationTechnology Use v. Technology Integration
Technology Use v. Technology Integration
adusard
 
Reaction Rate Graph Tutorial 3
Reaction Rate Graph Tutorial 3Reaction Rate Graph Tutorial 3
Reaction Rate Graph Tutorial 3
paulbhill
 
House sales customer_satisfaction_survey
House sales customer_satisfaction_surveyHouse sales customer_satisfaction_survey
House sales customer_satisfaction_survey
jsembiring
 
How To See
How To SeeHow To See
How To See
Soonuk Jung
 
Low Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web DevelopmentLow Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web Development
chaefele
 
e-Learning Design for Teacher
e-Learning Design for Teachere-Learning Design for Teacher
e-Learning Design for Teacher
Sunami Hokuto
 
Greenland - breath taking
Greenland - breath takingGreenland - breath taking
Greenland - breath taking
Andrei Catalin Semen
 
2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги
2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги
2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги
Yevgeny Sinyakov
 
что помогает животным выживать
что помогает животным выживатьчто помогает животным выживать
что помогает животным выживать
RaikhanaM
 
PCカンファレンス2009 日記じゃないのよブログは
PCカンファレンス2009 日記じゃないのよブログはPCカンファレンス2009 日記じゃないのよブログは
PCカンファレンス2009 日記じゃないのよブログは
Sunami Hokuto
 
The Patent Box: Alternatives to Patents
The Patent Box: Alternatives to PatentsThe Patent Box: Alternatives to Patents
The Patent Box: Alternatives to Patents
Jane Lambert
 
Leningrad's Siege
Leningrad's SiegeLeningrad's Siege
Leningrad's Siege
Andrei Catalin Semen
 
Fiche hrst en
Fiche hrst enFiche hrst en
Fiche hrst en
riklaunim
 
Beoordelingsportfolio oa-vo
Beoordelingsportfolio oa-voBeoordelingsportfolio oa-vo
Beoordelingsportfolio oa-vo
guesta9d4c4
 
M&CSAATCHI.GAD Snack Planning Vol.8
M&CSAATCHI.GAD Snack Planning Vol.8M&CSAATCHI.GAD Snack Planning Vol.8
M&CSAATCHI.GAD Snack Planning Vol.8
Benoît Pellevoizin
 
持続可能な教材開発プロジェクトのために教師がWebですべきこと
持続可能な教材開発プロジェクトのために教師がWebですべきこと持続可能な教材開発プロジェクトのために教師がWebですべきこと
持続可能な教材開発プロジェクトのために教師がWebですべきこと
Sunami Hokuto
 
Maryland Summer Food
Maryland Summer FoodMaryland Summer Food
Maryland Summer Food
mambrosefrac
 
Что помогает животным выживать
Что помогает животным выживатьЧто помогает животным выживать
Что помогает животным выживать
RaikhanaM
 
Technology Use v. Technology Integration
Technology Use v. Technology IntegrationTechnology Use v. Technology Integration
Technology Use v. Technology Integration
adusard
 
Reaction Rate Graph Tutorial 3
Reaction Rate Graph Tutorial 3Reaction Rate Graph Tutorial 3
Reaction Rate Graph Tutorial 3
paulbhill
 
House sales customer_satisfaction_survey
House sales customer_satisfaction_surveyHouse sales customer_satisfaction_survey
House sales customer_satisfaction_survey
jsembiring
 
Low Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web DevelopmentLow Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web Development
chaefele
 
e-Learning Design for Teacher
e-Learning Design for Teachere-Learning Design for Teacher
e-Learning Design for Teacher
Sunami Hokuto
 
2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги
2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги
2013 ТРИУНА Лидерз, Колесо Инноваций, презентация книги
Yevgeny Sinyakov
 
что помогает животным выживать
что помогает животным выживатьчто помогает животным выживать
что помогает животным выживать
RaikhanaM
 
PCカンファレンス2009 日記じゃないのよブログは
PCカンファレンス2009 日記じゃないのよブログはPCカンファレンス2009 日記じゃないのよブログは
PCカンファレンス2009 日記じゃないのよブログは
Sunami Hokuto
 
The Patent Box: Alternatives to Patents
The Patent Box: Alternatives to PatentsThe Patent Box: Alternatives to Patents
The Patent Box: Alternatives to Patents
Jane Lambert
 
Fiche hrst en
Fiche hrst enFiche hrst en
Fiche hrst en
riklaunim
 
Beoordelingsportfolio oa-vo
Beoordelingsportfolio oa-voBeoordelingsportfolio oa-vo
Beoordelingsportfolio oa-vo
guesta9d4c4
 
M&CSAATCHI.GAD Snack Planning Vol.8
M&CSAATCHI.GAD Snack Planning Vol.8M&CSAATCHI.GAD Snack Planning Vol.8
M&CSAATCHI.GAD Snack Planning Vol.8
Benoît Pellevoizin
 
持続可能な教材開発プロジェクトのために教師がWebですべきこと
持続可能な教材開発プロジェクトのために教師がWebですべきこと持続可能な教材開発プロジェクトのために教師がWebですべきこと
持続可能な教材開発プロジェクトのために教師がWebですべきこと
Sunami Hokuto
 
Ad

Similar to Working with Shortcodes in WordPress (20)

WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
OpenSource Technologies Pvt. Ltd.
 
Working With Media in WordPress
Working With Media in WordPressWorking With Media in WordPress
Working With Media in WordPress
chaefele
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
Evan Mullins
 
NEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityNEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & Security
Michelle Davies (Hryvnak)
 
Introduction To Simple WordPress Plugin Development
Introduction To Simple WordPress Plugin DevelopmentIntroduction To Simple WordPress Plugin Development
Introduction To Simple WordPress Plugin Development
Bruce L Chamoff
 
WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
Joe Casabona
 
From WordPress With Love
From WordPress With LoveFrom WordPress With Love
From WordPress With Love
Up2 Technology
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentation
alledia
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute Workshop
Brendan Sera-Shriar
 
Web components the future is here
Web components   the future is hereWeb components   the future is here
Web components the future is here
Gil Fink
 
Fundamentals of HTML5
Fundamentals of HTML5Fundamentals of HTML5
Fundamentals of HTML5
St. Petersburg College
 
Writing your own WordPress themes and plugins
Writing your own WordPress themes and pluginsWriting your own WordPress themes and plugins
Writing your own WordPress themes and plugins
Stephanie Wells
 
Rapid WordPress theme development
Rapid WordPress theme developmentRapid WordPress theme development
Rapid WordPress theme development
Jonny Allbut
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation
Micky Metts
 
WordPress Intermediate Workshop
WordPress Intermediate WorkshopWordPress Intermediate Workshop
WordPress Intermediate Workshop
The Toolbox, Inc.
 
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityExpanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Teamstudio
 
Alice Phieu - WordPress For Beginners
Alice Phieu - WordPress For BeginnersAlice Phieu - WordPress For Beginners
Alice Phieu - WordPress For Beginners
Alice Phieu
 
Tutorial Módulo 1 de Introdução com Flask
Tutorial Módulo 1 de Introdução com FlaskTutorial Módulo 1 de Introdução com Flask
Tutorial Módulo 1 de Introdução com Flask
Vinícius Marques
 
Rapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPressRapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPress
Nathaniel Taintor
 
WordPress Plugin Development- Rich Media Institute Workshop
WordPress Plugin Development- Rich Media Institute WorkshopWordPress Plugin Development- Rich Media Institute Workshop
WordPress Plugin Development- Rich Media Institute Workshop
Brendan Sera-Shriar
 
Working With Media in WordPress
Working With Media in WordPressWorking With Media in WordPress
Working With Media in WordPress
chaefele
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
Evan Mullins
 
NEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityNEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & Security
Michelle Davies (Hryvnak)
 
Introduction To Simple WordPress Plugin Development
Introduction To Simple WordPress Plugin DevelopmentIntroduction To Simple WordPress Plugin Development
Introduction To Simple WordPress Plugin Development
Bruce L Chamoff
 
WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
Joe Casabona
 
From WordPress With Love
From WordPress With LoveFrom WordPress With Love
From WordPress With Love
Up2 Technology
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentation
alledia
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute Workshop
Brendan Sera-Shriar
 
Web components the future is here
Web components   the future is hereWeb components   the future is here
Web components the future is here
Gil Fink
 
Writing your own WordPress themes and plugins
Writing your own WordPress themes and pluginsWriting your own WordPress themes and plugins
Writing your own WordPress themes and plugins
Stephanie Wells
 
Rapid WordPress theme development
Rapid WordPress theme developmentRapid WordPress theme development
Rapid WordPress theme development
Jonny Allbut
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation
Micky Metts
 
WordPress Intermediate Workshop
WordPress Intermediate WorkshopWordPress Intermediate Workshop
WordPress Intermediate Workshop
The Toolbox, Inc.
 
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityExpanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Teamstudio
 
Alice Phieu - WordPress For Beginners
Alice Phieu - WordPress For BeginnersAlice Phieu - WordPress For Beginners
Alice Phieu - WordPress For Beginners
Alice Phieu
 
Tutorial Módulo 1 de Introdução com Flask
Tutorial Módulo 1 de Introdução com FlaskTutorial Módulo 1 de Introdução com Flask
Tutorial Módulo 1 de Introdução com Flask
Vinícius Marques
 
Rapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPressRapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPress
Nathaniel Taintor
 
WordPress Plugin Development- Rich Media Institute Workshop
WordPress Plugin Development- Rich Media Institute WorkshopWordPress Plugin Development- Rich Media Institute Workshop
WordPress Plugin Development- Rich Media Institute Workshop
Brendan Sera-Shriar
 
Ad

More from chaefele (13)

Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)
chaefele
 
Writing Accessibly Online
Writing Accessibly OnlineWriting Accessibly Online
Writing Accessibly Online
chaefele
 
Improving Analytics with Google Tag Manager
Improving Analytics with Google Tag ManagerImproving Analytics with Google Tag Manager
Improving Analytics with Google Tag Manager
chaefele
 
Building an Academic Library Website in WordPress
Building an Academic Library Website in WordPressBuilding an Academic Library Website in WordPress
Building an Academic Library Website in WordPress
chaefele
 
Remote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No CostRemote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No Cost
chaefele
 
Rock your library’s content with Wordpress
Rock your library’s content with WordpressRock your library’s content with Wordpress
Rock your library’s content with Wordpress
chaefele
 
Moving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library WebsiteMoving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library Website
chaefele
 
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
chaefele
 
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...
chaefele
 
Building an app-like experience (without the app)
Building an app-like experience (without the app)Building an app-like experience (without the app)
Building an app-like experience (without the app)
chaefele
 
Library in your pocket
Library in your pocketLibrary in your pocket
Library in your pocket
chaefele
 
Serious Games - ARGs
Serious Games - ARGsSerious Games - ARGs
Serious Games - ARGs
chaefele
 
Args
ArgsArgs
Args
chaefele
 
Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)
chaefele
 
Writing Accessibly Online
Writing Accessibly OnlineWriting Accessibly Online
Writing Accessibly Online
chaefele
 
Improving Analytics with Google Tag Manager
Improving Analytics with Google Tag ManagerImproving Analytics with Google Tag Manager
Improving Analytics with Google Tag Manager
chaefele
 
Building an Academic Library Website in WordPress
Building an Academic Library Website in WordPressBuilding an Academic Library Website in WordPress
Building an Academic Library Website in WordPress
chaefele
 
Remote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No CostRemote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No Cost
chaefele
 
Rock your library’s content with Wordpress
Rock your library’s content with WordpressRock your library’s content with Wordpress
Rock your library’s content with Wordpress
chaefele
 
Moving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library WebsiteMoving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library Website
chaefele
 
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
chaefele
 
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...
chaefele
 
Building an app-like experience (without the app)
Building an app-like experience (without the app)Building an app-like experience (without the app)
Building an app-like experience (without the app)
chaefele
 
Library in your pocket
Library in your pocketLibrary in your pocket
Library in your pocket
chaefele
 
Serious Games - ARGs
Serious Games - ARGsSerious Games - ARGs
Serious Games - ARGs
chaefele
 

Recently uploaded (20)

Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 

Working with Shortcodes in WordPress

  • 1. DON’T TYPE IT OVER AND OVER Chad Haefele Interim Head of User Experience UNC Chapel Hill Libraries [email protected] Working with Shortcodes in WordPress
  • 2. Previously on Florida Library Webinars… https://floridalibrarywebinars.org/building-a-library-website-in-wordpress-ondemand/
  • 3. Previously on Florida Library Webinars… https://floridalibrarywebinars.org/media-in-wordpress-ondemand/
  • 9. What would you use one for? •Policies •Widgets •Twitter •Libraryh3lp •Galleries •Library hours •Library events
  • 10. Components of other plugins • Formidable • Elegant Themes • $89/year • 3D Viewer: [stl file="/2016/09/filename.stl" ]
  • 11. Working with 3D Models
  • 14. .com usage • Video • en.support.wordpress.com/videos/ • Audio • en.support.wordpress.com/audio/
  • 15. .org usage (built-in) • Video • codex.wordpress.org/Audio_Shortcode • Audio • codex.wordpress.org/Video_Shortcode • Other built-in shortcodes • Caption • Embed: https://codex.wordpress.org/Embeds • Playlist: https://codex.wordpress.org/Playlist_Shortcode • Gallery: https://codex.wordpress.org/Gallery_Shortcode
  • 17. Installing & Using Shortcodes UI wordpress.org/plugins/shortcodes-ui/
  • 18. Build a basic text substitution shortcode 1. Put your reusable text in the top edit box 2. Set the ShortCode Type dropdown to Simple Snippet 3. Choose a ShortCode Tag – this is the text you’ll use to trigger your Shortcode 4. Click the Publish button 5. Go put [YourShortcodeTag] somewhere in a Page or Post.
  • 19. Build a Twitter widget shortcode 1. Get the code for your Twitter widget from twitter.com/settings/widgets 2. Put your Twitter widget code in the top edit box 3. Set the ShortCode Type dropdown to Simple Snippet 4. Choose a ShortCode Tag – this is the text you’ll use to trigger your Shortcode 5. Click the Publish button 6. Go put [YourShortcodeTag] somewhere in a Page or Post.
  • 20. Enable shortcodes in WP widgets WARNING! THIS COULD BREAK THINGS! 1. Under Appearance, go to Editor 2. Edit your functions.php file (it might be called Theme Functions) 3. Add this code near the top of the file: // Enable shortcodes in widgets add_filter('widget_text', 'do_shortcode'); 4. Click Update File Alternatively, use this plugin: wordpress.org/plugins/shortcode-widget/
  • 21. Build a libraryh3lp shortcode (advanced!) 1. Set the ShortCode Type dropdown to Simple One Tag ShortCode 2. Give your Shortcode this tag: libraryh3lp 3. Paste one of your libraryh3lp code snippets in the ShortCode Template box 4. In your libraryh3lp snippet, replace the ID number with {id} 5. Scroll down to ShortCode Attributes, click the plus button 6. Fill in: 1. Name: id 2. Default Value: 0 7. Click Publish or Update 8. Find the id of the libraryh3lp snippet you want to embed 9. On any WordPress Page, put [libraryh3lp id=“1234”], replacing your snippet ID as appropriate
  • 27. DON’T TYPE IT OVER AND OVER Chad Haefele Interim Head of User Experience UNC Chapel Hill Libraries [email protected] Working with Shortcodes in WordPress Slides:

Editor's Notes

  • #6: .com – good first playground
  • #7: .org – the real deal
  • #8: Shortcodes put the content management in content management system. Text between brackets automatically displays a pre-set chunk of content.
  • #9: Shortcodes put the content management in content management system. Text between brackets automatically displays a pre-set chunk of content.
  • #10: Policies Widgets Galleries
  • #16: Show shortcuts in the Add Media screen
  • #23: Shortcodes put the content management in content management system. Text between brackets automatically displays a pre-set chunk of content.
  • #24: Shortcodes put the content management in content management system. Text between brackets automatically displays a pre-set chunk of content.