Sagamore PTA Wordpress notes
The Sagamore Hills PTA website runs on Wordpress
Styling[edit]
Bother John Lenz to make it 'perty.
Featured Images[edit]
The target dimensions for featured images in the Twentyfourteen theme is: 1038x576
Plugins[edit]
Site change notifications[edit]
So folks know when the website has been changed, the Wordpress plugin: Email Post Changes comes in handy.
Calendar[edit]
You can just embed Google Calendars, but they're ugly. Instead, use a plugin to pull and present calendar data.
Tried Google Calendar Events 2014-09, but it was buggy (Dave)
Facebook[edit]
See: Sagamore Facebook
Setup[edit]
How a new installation was setup for the PTA website reset 2014-09
Fresh install[edit]
- Login to the Sagamore Hills PTA Dreamhost account and install Wordpress
- Manage Domains → Add Hosting to a Domain/Sub-Domain
- Do you want the www in your URL?
- Remove WWW: Make http://www.example.com/ redirect to http://example.com/
- Run this domain under the user
- sagamorehillspta
- One-Click Installs → Wordpress (without Deluxe Install)
- Manage Domains → Add Hosting to a Domain/Sub-Domain
- Wordpress installation setup (at web address)
- Username
- sagamorehillspta
- communications@sagamorehillspta.org
- Settings
- General
-
- Tagline
- blank
- Timezone
- America / New York
- Discussion
-
- Default article settings
- Deselect all 3 (notify, trackbacks, comments)
- Media
-
- Uploading Files
- Deselect, "Organize my uploads into month- and year-based folders"
- Permalinks
-
- Common Settings
-
- Custom Structure
/%year%/%monthnum%/%day%/%postname%
- ("Day and name" minus the trailing slash)
- Delete default example content: comment (comment 1 from Mr. Wordpress on post Hello World), post Hellow World (id=1), page Sample Page (id=2))
- Increase default upload filesize (from 7M at Dreamhost in /etc/php54/php.ini in 2014-10) to allow uploading videos; see http://wiki.dreamhost.com/index.php/PHP.ini .
Import old content[edit]
Notes:
- Posts (pages) will maintain their Wordpress post IDs if possible (they aren't already taken on the new site), so fewer broken links!
- Media files (attachments) will only import from an "All content" export
- Since "All content" includes elements you might not want to import, like comments or navigation menus, try pruning the XML export file of those elements before importing
- Old site, Tools → Export → All content (save somewhere)
- New site, Tools → Import → Wordpress
- Install plugin as prompted
- "Activate plugin"
- Tools → Import → Wordpress (select saved export)
- Assign posts to an existing user (sagamorehillspta)
- Download and import file attachments
Plugins[edit]
- Delete unused default plugins:
- Akismet
- Hello Dolly
- Install
- Email Post Changes
Redirectionbasic redirection provided by Wordpress already- Post Type Switcher
Old ideas[edit]
Don't do these!
Change starting post ID[edit]
Not needed if content is imported
From Sagamore online goals 2014#URL_redirects:
Make the new Wordpress installation use post IDs we haven't used before to avoid collisions (terms and users weren't utilized enough on the old site to bother with), then setup .htaccess redirects from the old to the new as desired.
- On the new Wordpress database:
ALTER wp_posts AUTO_INCREMENT = 2001 ;
Assigning post IDs[edit]
Don't use: Although the following is possible, it's probably better to just import old content and/or use redirects for old content (ala Sagamore .htaccess) and make new content use unique post IDs by doing #Change starting post ID.
- migration - How can I assign post a specific ID on creation? - WordPress Development Stack Exchange
- wordpress - insert post ID with wp_insert_post - Stack Overflow
- Function Reference/wp insert post « WordPress Codex
- Might want to know how to execute from the command line too
When importing content, it may be easier for sake of redirecting to assign posts/pages the same ID they had on the export site (especially if the export site exposed IDs in its URL (like the PTA site from 2012-2014)). : This happens automatically with Wordpress's Tools → Import if the IDs aren't already taken!
Page Tagging & Categories[edit]
Of the two default content types in Wordpress, Pages (unlike the other, Posts), cannot have Tags or Categories associated with them by default. It is relatively simple to change that with some code or a simple plugin:
- Pages are Posts (I like that one for its simplicity)
- Post Tags and Categories for Pages
Only add Tags (not Categories) to Pages: