Sagamore PTA Wordpress notes
Jump to navigation
Jump to search
Wordpress notes from the Sagamore Online gang (email • archives • subscribe & more)!
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:
- Pages are Posts (I like that one for its simplicity)
- Post Tags and Categories for Pages
Only add Tags (not Categories) to Pages:
Styling
Bother John Lenz to make it 'perty.
Addresses (URLs)
Beautification
Be sure to: Admin → Settings → Permalinks → Day and name
(to get rid of the ugly "?p=#")
Assign an 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
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)).