• Resolved wzshop

    (@wzshop)


    Hi,
    I am trying to show my blog posts for all languages. However when try I try to query them by term, only the term for a specific language is shown in wp admin. Any hook/filter to get the terms for all languages?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Thread Starter wzshop

    (@wzshop)

    Thank you, that was what I was looking for!
    One more question, would I also be able to use a hook from my theme to alter the get_terms() query? Or is this always overwritten by the Polylang plugin and do I need to use a Poylang hook?

    Thanks!

    Plugin Author Chouby

    (@chouby)

    Hello,

    If you need to alter an existing term query, then WordPress provides several filters. In most cases, get_terms_args is the most useful as it allows to add / remove / modify the arguments used for the query. See: https://developer.ww.wp.xz.cn/reference/hooks/get_terms_args/

    Thread Starter wzshop

    (@wzshop)

    Yes, I know, thank you very much. I was just checking if i can use the native WP query to change this or if it gets overwritten by a Polylang function.
    Anyway, thank you!

    • This reply was modified 6 years ago by wzshop.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Get terms from all languages?’ is closed to new replies.