Sagamore PTA Wordpress notes: Difference between revisions

From Parents
Jump to navigation Jump to search
(→‎Assign an ID: Imporove title)
(→‎Assigning post IDs: How to execute from the command line)
Line 30: Line 30:
* [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://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]
* [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)).
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)).

Revision as of 15:21, 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)

Address beautification

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

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

Assigning post IDs

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