{"id":86,"date":"2021-06-13T11:48:13","date_gmt":"2021-06-13T10:48:13","guid":{"rendered":"https:\/\/www.simons.tools\/en\/?p=86"},"modified":"2021-06-13T11:48:18","modified_gmt":"2021-06-13T10:48:18","slug":"automatisch-gespeicherter-entwurf-6","status":"publish","type":"post","link":"https:\/\/www.simons.tools\/en\/automatisch-gespeicherter-entwurf-6\/","title":{"rendered":"Elementor: Finde custom post type"},"content":{"rendered":"\n<p>add_action( &#8216;elementor\/query\/my_custom_filter&#8217;, function( $query ) {<br>\/\/ Here we set the query to fetch posts with<br>\/\/ post type of &#8216;custom-post-type1&#8217; and &#8216;custom-post-type2&#8217;<br>$query-&gt;set( &#8216;post_type&#8217;, [ &#8216;custom-post-type1&#8217;, &#8216;custom-post-type2&#8217; ] );<br>} );<\/p>\n","protected":false},"excerpt":{"rendered":"<p>add_action( &#8216;elementor\/query\/my_custom_filter&#8217;, function( $query ) {\/\/ Here we set the query to fetch posts with\/\/ post type of &#8216;custom-post-type1&#8217; and &#8216;custom-post-type2&#8217;$query-&gt;set( &#8216;post_type&#8217;, [ &#8216;custom-post-type1&#8217;, &#8216;custom-post-type2&#8217; ] );} );<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_en_post_content":"<!-- wp:paragraph -->\n<p>add_action( 'elementor\/query\/my_custom_filter', function( $query ) {<br>\/\/ Here we set the query to fetch posts with<br>\/\/ post type of 'custom-post-type1' and 'custom-post-type2'<br>$query-&gt;set( 'post_type', [ 'custom-post-type1', 'custom-post-type2' ] );<br>} );<\/p>\n<!-- \/wp:paragraph -->","_en_post_name":"automatisch-gespeicherter-entwurf-6","_en_post_excerpt":"","_en_post_title":"Elementor: Finde custom post type","_de_post_content":"","_de_post_name":"","_de_post_excerpt":"","_de_post_title":"","edit_language":"en","footnotes":""},"categories":[12],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":2,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts\/86\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}