NO BUG: Loop with mixed post types shows only "normal" post types

So I have two custom post types created with JetEngine. I would like to loop through those two CPTs and the “normal” WordPress post types. But as soon as I add the normal WordPress post type my loop shows me only the basic post type and not my new created CPTs.

And now I figured out, that when you add the post type “post” to the filter bar at first just the normal WordPress post type filter option is shown. After you click on the filter the other types will appear.

Hi Ioannis,
Thanks so much for your report!

Could you provide a live link and a screencast using https://jam.dev showing and explaining what’s happening?

Best regards,
timmse

https://jam.dev/c/f5d32536-b845-409f-b8c0-31f557beeabe

Thanks so much for the video!
I tried to replicate the issue, but I can’t.

Please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

Thanks again for the login credentials!

The issue is caused by Polylang changing the initial query for the regular “posts” post type, because translations are enabled for the posts post type, but not for the other two custom post types. As soon as you disable Polylang, it works as expected.

If you enable translations for the “Aktionen” and “Events” CPT, it should work in theory.

Let me know if it does and have a great weekend!

1 Like

Thank you! I didn’t test it yet but that should be the solution.