Editing
Sagamore PTA Wordpress notes
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
The [[Sagamore Hills PTA website]] runs on [https://wordpress.org/ Wordpress] ==Styling== Bother [[John Lenz]] to make it 'perty. ===Featured Images=== The target dimensions for featured images in the Twentyfourteen theme is: '''1038x576''' ==Plugins== ===Site change notifications=== So folks know when the website has been changed, the [https://wordpress.org/plugins/email-post-changes/ Wordpress plugin: Email Post Changes] comes in handy. ===Calendar=== You can just [https://support.google.com/calendar/answer/41207 embed Google Calendars], but they're ugly. Instead, use a plugin to pull and present calendar data. Tried [https://wordpress.org/plugins/google-calendar-events/ Google Calendar Events] 2014-09, but it was buggy ([[Dave Barker|Dave]]) ===Facebook=== See: [[Sagamore Facebook]] ==Setup== How a new installation was setup for the PTA website reset 2014-09 ===Fresh install=== # Login to the [[Sagamore Hills PTA Dreamhost account]] and install Wordpress ## [https://panel.dreamhost.com/index.cgi?tree=domain.manage Manage Domains] β Add Hosting to a Domain/Sub-Domain ##;Do you want the www in your URL? ##: <nowiki>Remove WWW: Make http://www.example.com/ redirect to http://example.com/</nowiki> ##;Run this domain under the user: ##: sagamorehillspta ## [https://panel.dreamhost.com/index.cgi?tree=goodies.installer One-Click Installs] β Wordpress (''without'' [http://wiki.dreamhost.com/WordPress_Deluxe_One-Click_Install Deluxe Install]) # Wordpress installation setup (at web address) #;Username #: sagamorehillspta #;Email #: [[communications@sagamorehillspta.org]] # Settings #;General #: #:;Tagline #:: ''blank'' #:;Timezone #:: America / New York #;Discussion #: #:;Default article settings #:: '''De'''select all 3 (notify, trackbacks, comments) #;Media #: #:;Uploading Files #:: '''De'''select, "Organize my uploads into month- and year-based folders" #;Permalinks #: #:;Common Settings #:: #::;Custom Structure #::: <code>/%year%/%monthnum%/%day%/%postname%</code> #::: ''("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=== 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=== # Delete unused default plugins: #* Akismet #* Hello Dolly # Install #* [https://wordpress.org/plugins/email-post-changes/ Email Post Changes] #* <del>[https://wordpress.org/plugins/redirection/ Redirection]</del> ''basic redirection provided by Wordpress already'' #* [https://wordpress.org/plugins/post-type-switcher/ Post Type Switcher] ==Old ideas== '''''Don't'' do these!''' ===Change starting post ID=== '''''Not needed''' if content is [[#Import_old_content|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: #: <pre>ALTER wp_posts AUTO_INCREMENT = 2001 ;</pre> ===Assigning post IDs=== '''''Don't use:''' Although the following is possible, it's probably better to just [[#Import_old_content|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]].'' * [https://wordpress.stackexchange.com/questions/7177/how-can-i-assign-post-a-specific-id-on-creation#answer-7230 migration - How can I assign post a specific ID on creation? - WordPress Development Stack Exchange] * [https://stackoverflow.com/questions/6558286/insert-post-id-with-wp-insert-post#answer-8153962 wordpress - insert post ID with wp_insert_post - Stack Overflow] * [https://codex.wordpress.org/Function_Reference/wp_insert_post#Example Function Reference/wp insert post Β« WordPress Codex] * Might want to know how to [http://vocecommunications.com/blog/2011/03/running-wordpress-from-command-line/ 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=== 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 [https://www.sitepoint.com/wordpress-pages-use-tags/ some code] or a simple plugin: * '''[https://wordpress.org/plugins/pages-are-posts/ Pages are Posts]''' (I like that one for [https://plugins.trac.wordpress.org/browser/pages-are-posts/trunk/pages-are-posts.php its simplicity]) * [https://wordpress.org/plugins/post-tags-and-categories-for-pages/ Post Tags and Categories for Pages] ''Only add Tags (not Categories) to Pages:'' * [https://wordpress.org/plugins/tag-pages/ Tag Pages] * [https://wordpress.org/plugins/page-tagger/ Page Tagger] [[Category:Sagamore Hills online]]
Summary:
Please note that all contributions to Parents may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information