WPML theme 作成

1) Automatically Adjust IDs

WPML can hook to WordPress API functions, detect when specific items are loaded and adjust IDs so that the results are adjusted for the active language.

https://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/

IDを自動調整してくれる。例えば get_posts の category (カテゴリ ID) category_name (カテゴリ名) を調整。