marko krstić

Collections

Archives

Manual query get complex data

<?php
$data = array(
    'post_type'              => array( 'post' ),
    'post__not_in'           => array(get_the_ID())
);

echo build_query( $data );
?>

Paste this into code block to get that data. Paste that data into Query of Easy posts or Repeater. With this, you can put in query data from ACF Pro as well

Credits to: https://wpdevdesign.com/how-to-generate-the-query-string-for-easy-posts-in-oxygen/

Let's Connect

Feel free to reach out for collaborations or just a friendly hello 😀
mailme@markokrstic.com
linkedininstagramdribbblefacebook-official