PRX / cms.theworld.org

Wordpress CMS for The World
Apache License 2.0
0 stars 2 forks source link

Cleanup Post Tags #156

Closed gtenaschuk closed 7 months ago

gtenaschuk commented 7 months ago

IMPORTANT: If the Post Tag is repeated in more than 1 custom taxonomy, for example Countries, Categories and Social Tags, the Posts and Episodes will be associated to the 3 of them.

rpeterman-gp commented 7 months ago

@gtenaschuk I see that functions were aded to the helper class, but don't see any changes that queue those up to be run. How would this process be started and monitored?

gtenaschuk commented 7 months ago

@rpeterman-gp Those methods can be run by wp-cli, we were trying to create all the things we can prepared to run with wp-cli because it is much faster than running things from the UI. So to get the number of duplicated tags the process to run is terminus wp the-world.issue-122 tw-fix get_duplicated_post_tags_number and the process to cleanup post tags is terminus wp the-world.issue-122 tw-fix post_tags_fix_duplicate and we have different logs to display parts of the process in the terminal.

rpeterman-gp commented 7 months ago

@gtenaschuk Ah, ok. In that case can we either have these new commands added to the cli.php docs, or have a README created with descriptions and instructions for each command?

gtenaschuk commented 7 months ago

Of course, will add that to the docs and will let you know.

gtenaschuk commented 7 months ago

Documentation added