Tnx, i wasnt aware of this easy Way to check Pods sql query ??
So, what I see from it is that t.post_author={@user.id} asks the sql query for the value of the currently logged in user editing the pod extending users, not the actual extended user I’m editing. So instead of {user.id} i would need the ID of the author of this extended user post. I tried t.post_author={@post_author.id} and t.post_author={@post_author} but it breaks sql checking.
SELECT
DISTINCT
<code>t</code>.<code>ID</code>, <code>t</code>.<code>post_title</code>, <code>t</code>.<code>post_type</code>, <code>t</code>.<code>menu_order</code>, <code>t</code>.<code>post_date</code>
FROM <code>wp_posts</code> AS <code>t</code>
LEFT JOIN <code>wp_term_relationships</code> AS <code>rel_category</code> ON
<code>rel_category</code>.<code>object_id</code> = <code>t</code>.<code>ID</code>
LEFT JOIN <code>wp_term_taxonomy</code> AS <code>rel_tt_category</code> ON
<code>rel_tt_category</code>.<code>taxonomy</code> = 'category'
AND <code>rel_tt_category</code>.<code>term_taxonomy_id</code> = <code>rel_category</code>.<code>term_taxonomy_id</code>
LEFT JOIN <code>wp_terms</code> AS <code>category</code> ON
<code>category</code>.<code>term_id</code> = <code>rel_tt_category</code>.<code>term_id</code>
LEFT JOIN <code>wp_term_relationships</code> AS <code>polylang_languages</code>
ON <code>polylang_languages</code>.<code>object_id</code> = <code>t</code>.<code>ID</code>
AND <code>polylang_languages</code>.<code>term_taxonomy_id</code> = 3
WHERE ( ( <code>category</code>.<code>slug</code> = "radovi" OR <code>category</code>.<code>slug</code> = "works" AND t.post_author=1 ) AND ( <code>t</code>.<code>post_type</code> = 'post' ) AND ( <code>polylang_languages</code>.<code>object_id</code> IS NOT NULL ) AND ( <code>t</code>.<code>post_status</code> IN ( 'publish' ) ) )
ORDER BY t.post_date, <code>t</code>.<code>menu_order</code>, <code>t</code>.<code>post_title</code>, <code>t</code>.<code>post_date</code>
What I did find in the very beginning in sql checking is the ID i need, but how to put it in magic tags. Number 2 here is the value i would need since this is the user ID of extended user post author I’m editing:
SELECT
DISTINCT
<code>t</code>.<code>ID</code> AS <code>pod_item_id</code>
FROM <code>wp_users</code> AS <code>t</code>
WHERE ( <code>t</code>.<code>ID</code> = 2 )