WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Get other language posts in a category using polylang (5 posts)

  1. bizarreleo
    Member
    Posted 1 year ago #

    Hi, Is it possible to get posts wich are set in language 1, to show in a category set in language 2?
    What I have is a bilingual site, two custom menus for each language, and I want to show both languages posts in homepage, and for some categories too.
    I´m using polylang 0.9.5, a commercial theme and wordpress 3.3.2 installed.

  2. Chouby
    Member
    Posted 1 year ago #

    If you have some PHP knowlegde, I believe that it would be possible to make a child theme and to obtain what you want with the Polylang API. Otherwise there is no ready solution to do this.

  3. bizarreleo
    Member
    Posted 1 year ago #

    Hi Chouby, thanks for your reply, I just hace some knowlegde with PHP, but I´ll try to create this switchable parent - child theme, to create the navigation in both languages and keep in some categories to show both languages.

    Thanks ;)

  4. Chouby
    Member
    Posted 1 year ago #

    This may be a good starting point:
    http://pastebin.com/br8ta9SJ
    Finally I went to a custom plugin rather than a child theme. You will probably have to adapt it to meet your exact needs.

  5. bizarreleo
    Member
    Posted 1 year ago #

    Nice plugin :), it works great for what I need to. Now I just need to see how AWPCP works with polylang.
    Thank you Chouby.

Topic Closed

This topic has been closed to new replies.

About this Topic