ACF and Gravity Form file upload frontend [closed]

An even easier option is to use my Gravity Forms Media Library plugin. Here’s the meat and potatoes of the functionality: public function maybe_upload_to_media_library( $entry, $form ) { $has_change = false; foreach( $form[‘fields’] as $field ) { if( ! $this->is_applicable_field( $field ) ) { continue; } $value = $entry[ $field->id ]; if( $field->multipleFiles ) { … Read more

Loop to display ONLY custom taxonomy parent information [closed]

I believe this has already been answered perfectly in How can I get only parent terms?. The solution is to set ‘parent’ => 0 when querying terms with get_terms() or WP_Term_Query. The example from that question looked like this: $myterms = get_terms( array( ‘taxonomy’ => ‘taxonomy_name’, ‘parent’ => 0 ) ); You can easily loop … Read more

get custom post type value in header.php [closed]

I’m observing three problems here. 1- Your anchors do not have a href attribute. As you mentioned, the app_url field is a URL, and should be output in the href attribute of an anchor. So, this is how your anchor should look like: <a href=”https://wordpress.stackexchange.com/questions/293751/<?php echo esc_url( get_field(“app_url’ ) ); ?>”>My Link</a> Note that I’ve … Read more

Can’t get taxonomy ID for each post on archive page

From the help of the comments above I needed to use get_term_terms to print the ID. I used the code below to achieve what I needed: <?php $terms = get_the_terms( $post->ID, ‘producers_assessment’ ); foreach($terms as $term) {?> <?php $image = get_field(‘badge’, ‘producers_assessment_’ . $term->term_id); if( !empty($image) ): ?> <img src=”https://wordpress.stackexchange.com/questions/295839/<?php echo $image[“url’]; ?>” alt=”https://wordpress.stackexchange.com/questions/295839/<?php echo … Read more