Ready to get started?Download WordPress


problem with categories (1 post)

  1. ClementR
    Posted 4 months ago #


    I did a search on this forum and others but I didn't found a similar problem.

    Actually I work on a website with a custom theme based on a bought theme. The website works well on a single language. I installed Polylang (v.1.3.1) to translate it in a second laguage.

    The problem is about categories :
    I display (with echo) the category ID on my template files in order to use it with CSS (one color per cat).
    After installed Polylang, all was OK
    After translating some posts of different categories, the IDs displayed are all "1". I checked on the database and nothing seems wrong (the categories have the right ID on term_taxonomy table). The more weird is that I use custom template files (like category-mycat.php) for displaying each category, and the right files are displayed.

    Have you an idea where the problem could be ?

    Thanks a lot in advance !




You must log in to post.

About this Plugin

About this Topic