Please make sure to update to WPML 4.3.5 and check our list of Known Issues before reporting

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by David 6 years, 7 months ago.

Assigned support staff: David.

Author Posts
May 10, 2013 at 2:15 pm #126356

Neil

This is not a support request rather I'm adding some information for people using custom query boxes with the new thesis

If you query by category it will output the default language cat ID and when you switch language no content shows up.

Using icl_object_id() I was able to recode the file wp-content/themes/thesis/lib/core/skin/boxes.php to show the correct category.

I'm adding this into the forum so people don't have to spend hours reverse engineering thesis to fine where the queries are created

Attached is the line that needs to be changed

'terms' => !empty($this->options[$this->options['post_type'] . '_' . $this->options[$this->options['post_type'] . '_tax'] . '_text']) ?
(int) $this->options[$this->options['post_type'] . '_' . $this->options[$this->options['post_type'] . '_tax'] . '_text'] :
(int) icl_object_id($this->options[$this->options['post_type'] . '_' . $this->options[$this->options['post_type'] . '_tax'] . '_term'], 'category', false)));

May 10, 2013 at 3:53 pm #126392

David
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Dear Neil,

Thanks for the tip, I will pass this on to our compatibility team to try and get it included in Thesis itself.

Best regards,
David

The topic ‘[Closed] Thesis 2 Custom Queries’ is closed to new replies.