monk icon indicating copy to clipboard operation
monk copied to clipboard

Easy Photography Portfolio plugin

Open brenoalvs opened this issue 7 years ago • 4 comments

Let's make it compatible with Easy Photography Portfolio plugin

brenoalvs avatar Aug 09 '17 16:08 brenoalvs

Cool, how can I help?

I'm using internationalized strings everywhere throughout the plugin, and CMB2 to power the admin panel.

Here is the source: https://github.com/justnorris/easy-photography-portfolio

This is what was required to make it compatible with WPML: https://github.com/justnorris/easy-photography-portfolio/blob/master/compatibility/wpml.php

pyronaur avatar Aug 10 '17 11:08 pyronaur

@justnorris I found 3 main issues:

  • The "main portfolio page" are not filtering entries by language.
  • I needed flush my permalinks to be able to access portfolio categories.
  • The Monk language switcher is not showing portfolio category translations links on their pages.

Can you do more tests on your side to look for anything else? And then I'll break this issue in some subtasks to investigate what is going on.

brenoalvs avatar Aug 11 '17 05:08 brenoalvs

Yeah, the main page is using WP_Query to just query all phort_post posts. And I think the permalinks needed a refresh because EPP registers a new post type, so it's not really an incompatibility.

I'll try to take a closer a look at it when I can.

pyronaur avatar Aug 11 '17 08:08 pyronaur

We should be filtering any WP_Query by language for default. I think that the first and third items are with us. Don't worry about them!

brenoalvs avatar Aug 11 '17 18:08 brenoalvs