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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -