DIV containing iframe disappears below break point of 992 in Oxygen Builder
RESOLVED. I changed the grid layout to use 2 columns above 992 and 1 col below and added a max-height of 300px to the image and that fixed it. Thanks for all the input
RESOLVED. I changed the grid layout to use 2 columns above 992 and 1 col below and added a max-height of 300px to the image and that fixed it. Thanks for all the input
I copied your code to one of my sites to test with ACF version 5.3.9.2. And it works for me I just had to make sure the field name and image size were correct. $size = get_field(‘slideshow_size’) ?: ‘Panoramic’; // Make sure this size exists, and usually is all lower case. $column_id[ $i ] = … Read more
It’s already in the docs. Try this: <?php $image = get_field(‘image’); if( !empty($image) ): ?> <img src=”https://wordpress.stackexchange.com/questions/223867/<?php echo $image[“url’]; ?>” alt=”https://wordpress.stackexchange.com/questions/223867/<?php echo $image[“alt’]; ?>” /> <?php endif; ?> For easier debugging, try this: var_dump($image); to print out the $image variable to know what is in $image. You can also put var_dump($image) inside <pre> tag for … Read more
Try this: <style type=”text/css”> –primary-color: <?php the_field(‘primary_theme_color’, ‘option’); ?>; </style> Or read this Article: https://www.advancedcustomfields.com/resources/options-page/
As you may have already found out, presently, soundcloud do not allow modification of parameters with the HTML5 widget and only when using the flash player. See here for more info: http://help.soundcloud.com/customer/portal/articles/241151-can-i-change-parameters-on-embedded-players- The options for the flash player can be found here: https://github.com/soundcloud/Widget-JS-API/wiki/widget-options I hope this answers your question anyway.
You need to use a have_rows() loop, then use get_sub_field. ACF provides great documentation, which happens to be the first google result, here
<?php $the_query = new WP_Query(array( ‘post_type’ => ‘our-partners’, ‘posts_per_page’ => 1, ‘order’ => ‘DESC’ )); if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); if( have_rows(‘slider_partenaires_hp’) ): //”slider_partenaires_hp” is the repeater field // loop through the rows of data while ( have_rows(‘slider_partenaires_hp’) ) : the_row(); // display a sub field value echo “<li … Read more
The easiest option would be to simply check if you are on every fourth iteration. Please see the following for an illustration, I haven’t tested this but see the basic idea. <?php $images = get_field(‘portfolio’); if( $images ): ?> <?php foreach( $images as $key => $image ): if (($key + 1) % 4 == 0) … Read more
Assuming you registered or enqueued your jQuery script using wp_enqueue_scripts and assigned it a proper handle, this function will allow you access to the postage_prices fields in jQuery via a variable postagePricesArray.prices. You need to replace %YOUR_SCRIPT_HANDLE% with your jQuery script’s actual handle or this variable may not become accessible. function localize_postage_prices() { global $post; … Read more
like people said there is probably a lot of things wrong with your code. so lets start line by line. whether this is a plugin or a file inside a theme include_once( ‘acf.php’ ); im assuming you have that file in the same directory as the current file otherwise you are including it wrong. this … Read more