Sagamore PTA Wordpress notes: Difference between revisions

From Parents
Jump to navigation Jump to search
(Add how to change starting post ID)
(Move some sections into a new Old Ideas section)
Line 1: Line 1:
Wordpress notes from the {{discussion list|name=Sagamore Online gang|id=sagamore.online|page=Sagamore online}}!
Wordpress notes from the {{discussion list|name=Sagamore Online gang|id=sagamore.online|page=Sagamore online}}!

==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]


==Styling==
==Styling==
Line 36: Line 24:
# On the new Wordpress database:
# On the new Wordpress database:
#: <pre>ALTER wp_posts AUTO_INCREMENT = 2001 ;</pre>
#: <pre>ALTER wp_posts AUTO_INCREMENT = 2001 ;</pre>

==Old ideas==


===Assigning post IDs===
===Assigning post IDs===
Line 48: Line 38:


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)).
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)).

===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]


==Further Reading==
==Further Reading==

Revision as of 19:57, 20 May 2014

Wordpress notes from the Sagamore Online gang (email • archivessubscribe & more)!

Styling

Bother John Lenz to make it 'perty.

Addresses (URLs)

Address beautification

Be sure to:

  1. Admin → Settings → Permalinks → Day and name
  2. Then: Custom Structure
  3. Remove the trailing slash

(to get rid of the ugly "?p=#" and default trailing slash)

Change starting post ID

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.

  1. On the new Wordpress database:
    ALTER wp_posts AUTO_INCREMENT = 2001 ;

Old ideas

Assigning post IDs

Don't use: Although the following is possible, it's probably better to just use redirects for old content (ala Sagamore .htaccess) and make new content use unique post IDs by doing #Change starting post ID.

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)).

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 some code or a simple plugin:

Only add Tags (not Categories) to Pages:

Further Reading