WordPress: How can add posts without category into category -


There are some posts without category in my WordPress, over 2000 articles, so I need to add this article to that category Is "news" by SQL

This should work:

  UPDATE Wp_term_relationships SET term_taxonomy_id = '3' Where term_taxonomy_id = '1'; ID of category "News", you may have to change it if it is different for you  1  "Uncategorised" Category ID, so all of the above 1 (UK) all post IDs should be changed (News) 

Try edit:

  UPDATE wp_term_relationships SET term_taxonomy_id = '3' Where term_taxonomy_id = '';  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -