{"id":9579074,"date":"2017-10-12T02:14:39","date_gmt":"2017-10-12T02:14:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/customized-pods-query\/"},"modified":"2017-10-12T02:14:39","modified_gmt":"2017-10-12T02:14:39","slug":"customized-pods-query","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/customized-pods-query\/","title":{"rendered":"customized pods query"},"content":{"rendered":"<p>Hello and many thanks for this wonderful plugin!<br \/>\nIs there a way to exclude the rendering of the current post from the loop of a customized pods query (relation from current item) in the posts module of beaver builder?<\/p>\n<p>Many thanks in advance!<\/p>\n<p><em>The following code excludes current posts from custom queries but not from pods relationsip queries:<\/em><br \/>\nfunction uabb_advance_post_custom_args( $args ) {<br \/>\n$args[&#8216;post__not_in&#8217;] = array( get_the_ID() );<br \/>\nreturn $args;<br \/>\n}<br \/>\nadd_filter( &#8216;uabb_blog_posts_query_args&#8217;, &#8216;uabb_advance_post_custom_args&#8217;, 10, 1 );<\/p>\n","protected":false},"template":"","class_list":["post-9579074","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9579074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9579074\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9579074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}