Form vs Function: Is that a WordPress Plugin or Theme?
-
date post
18-Oct-2014 -
Category
Education
-
view
495 -
download
0
description
Transcript of Form vs Function: Is that a WordPress Plugin or Theme?
![Page 1: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/1.jpg)
FORM V
S. FUNCTI
ON
I S T
HA
T A
WO
RD
PR
ES
S T
HE
ME
OR
PL U
GI N
FU
NC
TI O
N?
![Page 2: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/2.jpg)
WILL YOU USE IT IF YOU SWITCH THEMES?If you only plan to use it in the current theme, add it to the
theme
• Slideshows
• Accordions, tabbed content and other JavaScript tweaks
• Page navigation (WP-PageNavi, etc.)
• CSS tweaks
If it requires editing your theme (like WP-PageNavi), it should really be a theme function
![Page 3: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/3.jpg)
SLIDES
HOWS A
RE THEME
ITEMS
![Page 4: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/4.jpg)
PAGE N
AVIG
ATIO
N IS T
HEME-
SPECIFI
C
![Page 5: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/5.jpg)
IT’S A PLUGIN
If you plan to use it no matter which theme is being used, make it a plugin
• Custom post types
• Permalink/title/content manipulation (shortcodes, Page Links To, etc.)
• Spam, backup and security measures
• SEO & analytics info
• External resources (Twitter, Facebook, etc.)
![Page 6: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/6.jpg)
ANALYTI
CS SHOULD
BE A
PLUGIN
![Page 7: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/7.jpg)
WHAT’S A MU-PLUGIN?
If you want it to be active network-wide, no matter what theme or plugins are active, make it a mu-plugin
• Cannot be deactivated
• Don’t need plugin header
• Active network-wide
![Page 8: Form vs Function: Is that a WordPress Plugin or Theme?](https://reader036.fdocuments.us/reader036/viewer/2022070300/5442d0dcb1af9f3d0a8b477a/html5/thumbnails/8.jpg)
NEED SOME HELP?
Curtiss [email protected]://ten-321.com/[email protected]://umw.edu
Resources for Writing PluginsWriting custom functions for end-users - http://j.mp/oQkLsuCreating a site-specific snippets plugin - http://otto42.com/arWriting a WordPress plugin - http://j.mp/p7vrKA
Creating a WordPress ThemeTheme development - http://j.mp/o3fbXRChild Themes - http://j.mp/qzV2OWWhat are frameworks, parent themes & child themes? - http://j.mp/pPOmAQIncluding files in WordPress themes - http://j.mp/o0C6e4