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, 3 months ago.

Assigned support staff: David.

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


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


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

Timezone: Europe/Madrid (GMT+02: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,

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