Tag Info

New answers tagged

0

As this is still coming up pretty high in Google results, I thought I'd add the alternative answer that helped for me. Not sure if ACF have updated their coding since this was answered, but only the following worked for me: <?php if( ( !get_field('linked_in') ) && #no linked_in value ( !get_field('twitter') ) && #no ...


1

I resolved the issue by using $dir = plugins_url() . '/simple/acf/'; in step 2. I kept everything else the same. // 2. Customize ACF dir add_filter('acf/settings/dir', 'my_acf_settings_dir'); function my_acf_settings_dir( $dir ) { // update path $dir = plugins_url() . '/simple/acf/'; // return return $dir; }


0

Exactly as brasofilo said but if you may need to generate the taxonomy name and ID and in that instance the following code will help: $taxonomy = $category->taxonomy; $term_id = $category->term_id; $image = wp_get_attachment_image_src(get_field('thumbnail', ...


0

//vimeo thumb generator PHP function getVimeoImg($id, $size = 'thumbnail_large'){ if(get_transient('vimeo_' . $size . '_' . $id)){ $thumb_image = get_transient('vimeo_' . $size . '_' . $id); }else{ $json = json_decode( file_get_contents( "http://vimeo.com/api/v2/video/" . $id . ".json" ) ); $thumb_image = $json[0]->$size; ...



Top 50 recent answers are included