Sagamore PTA Wordpress notes: Difference between revisions

From Parents
Jump to navigation Jump to search
(Intro with link to discussion group, Sagamore online page, and extra section for other links)
(→‎Addresses (URLs): Add "Assign ID" section)
Line 18: Line 18:


==Addresses (URLs)==
==Addresses (URLs)==

===Beautification===


Be sure to: Admin → Settings → Permalinks → Day and name
Be sure to: Admin → Settings → Permalinks → Day and name


(to get rid of the ugly "?p=#")
(to get rid of the ugly "?p=#")

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

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


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

Revision as of 12:36, 14 May 2014

Wordpress notes from the Sagamore Online gang (email • archivessubscribe & 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:

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

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

Further Reading