Skip Navigation

Toolset API toolset_get_related_posts() meta_key query is producing a WordPress database error

Resolved

Reported for: Toolset Types 3.0.4

Resolved in: 3.1

Symptoms

When you query related posts using the toolset_get_related_posts() function by meta key/value argument, the API throws the following WordPress database error:
[Unknown column 'wp_postmeta_1' in 'where clause']

Workaround

This issue will be resolved in the next Types release.

In the meantime, you can download this file, unzip it and replace the postmeta.php file found in the ..vendor/toolset/toolset-common/inc/m2m/association/query/condition/ folder.

Comments are closed