oEmbed Video in Modal
Okay, I’ve got around this by simply hiding the div containing the oEmbed code and then using .clone() to replicate it into my modal when it pops.
Okay, I’ve got around this by simply hiding the div containing the oEmbed code and then using .clone() to replicate it into my modal when it pops.
In order to be able to query by age, you will need to create another custom hidden field to store the date. You can then hook into the acf/save_post hook with a priority higher than 10 in order to update the age field value whenever the field is created/updated. Here is a gist of the … Read more
By definition, hashing is one-way ecnryption, so it can not be reversed (maybe some super hacker can do it, but it should be very difficult or almost imposible to do). It is not a bug, problem or somehting like that, It is the intended behaviour and it how every site should work. Many people use … Read more
You can count the number of words in your text to check if it’s greater than 15 using the str_word_count php function, and if not return your read more link also So i would modify your custom field excerpt thus: function custom_field_excerpt() { global $post; $text = get_field(‘description’); if (” != $text) { $text = … Read more
This is based on the assumption that you have a custom field called “show_on_tax” for the custom taxonomy “Directory Entry Type”, which appears when editing a small banner (See image below). This allows you to select which custom tax terms you want the banners to appear on. This should get you sorted but drop a … Read more
Hope the below code block will help you. Please read the comments carefully. The code block- // Your previous code. // Say this is your $oder_terms variable $order_terms = array( ‘Sanchez’ => ‘Sanchez Link’, ‘Smith’ => ‘Smith Link’, ‘Dramatist’ => ‘Dramatist Link’, ‘Rashed’ => ‘Rashed Link’, ‘Munez’ => ‘Munez Link’, ‘James’ => ‘James Link’, ‘Jacky’ … Read more
you could just say: get_the_post_thumbnail(”, ‘full’) just from the id itself since this is a custom meta. wp_get_attachment_image($project->project_image, ‘full’)
try this: $args = array( ‘post_type’ => ‘speaker’, ‘posts_per_page’ => -1, ‘post_status’ => ‘publish’, ‘meta_query’ => array( array( ‘key’ => ‘featured_speaker’, ‘value’ => ‘1’, ‘compare’ => ‘=’, ), ), ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘speaker_order’, ‘order’ => DESC, );
<?php if (get_field (‘sponser_advertisement’)) { echo ‘this is my field: ‘. get_field (‘sponser_advertisement’); } ?> (however you spelled sponsor wrong…) 🙂
Try this code at the place where you want your gallery: <?php $images = acf_photo_gallery(‘gallery_images’, $post->ID); /// gallery_images to slug pola galeria w ACF if( count($images) ): foreach($images as $image): $full_image_url= $image[‘full_image_url’]; $class = get_field(‘gallery_images_class’, $id); echo ‘<img src=”‘.$image[‘full_image_url’].'” class=”‘.$class.'” >’; endforeach; endif; ?> Do try to check if ‘$id’ gives you the image/post id … Read more