Editing
Sagamore PTA Wordpress notes
(section)
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!
===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!''
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