Form vs Function: Is that a WordPress Plugin or Theme?

8
FORM VS. FUNCTION IS THAT A WORDPRESS THEME OR PLUGIN FUNCTION?
  • date post

    18-Oct-2014
  • Category

    Education

  • view

    495
  • download

    0

description

While WordPress offers unparalleled flexibility in adding functionality, it can sometimes cause confusion as to where a new feature should be added. This quick presentation helps explore what features should be added as theme components, and which should be added as independent plugins.

Transcript of Form vs Function: Is that a WordPress Plugin or Theme?

Page 1: Form vs Function: Is that a WordPress Plugin or Theme?

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?

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?

SLIDES

HOWS A

RE THEME

ITEMS

Page 4: Form vs Function: Is that a WordPress Plugin or Theme?

PAGE N

AVIG

ATIO

N IS T

HEME-

SPECIFI

C

Page 5: Form vs Function: Is that a WordPress Plugin or Theme?

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?

ANALYTI

CS SHOULD

BE A

PLUGIN

Page 7: Form vs Function: Is that a WordPress Plugin or Theme?

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?

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