Get fields from poll
-
Hello,
I’m using ACF Pro and I created a relationship field where I make poll relationships created on the post.I’m trying to access fields like images and options for each poll through wp_query.
I would like to create my own template.
Kind regards!
$args = array( 'post_type' => 'onyxpolls', 'posts_per_page' => 2, 'orderby' => 'title', 'post__in' => $idEnquetes, 'order' => 'ASC', ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); get_field(); <-- get fields images and options from poll endwhile;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get fields from poll’ is closed to new replies.