hello Elliot,
yes it’s like this !
but the picture are not showing with ie 8.
best
benoit
hello Elliot,
sorry,
in the pre tag i have : 260
best,
hello Elliot,
inside
<?php echo '
'; print_r( get_field('image_bloc_2') ); echo '
';
die;
?>
hello Elliot,
when i try this:
<?php
echo ‘
'; print_r( get_field('image_bloc_2') ); echo '
‘;
die;
?>
the slider and the page content are not showing,
you can see on the png,
best
Hello Elliot,
When i use the id, the problem is with Internet explorer 8, the picture are not showing.
you have a solution ?
best
Benoit
ok i found alone,
i don’t put the good key name 😉
it’s ok like this:
$currentdate = date(“Y-m-d”,mktime(0,0,0,date(“m”),date(“d”)-1,date(“Y”)));
query_posts( array(
‘meta_query’=> array(
array(
‘key’ => ‘date-picker’,
‘compare’ => ‘>’,
‘value’ => $currentdate,
‘type’ => ‘DATE’,
)),
‘post_type’ => ‘concerts’,
‘meta_key’ => ‘date-picker’,
‘orderby’ => ‘meta_value_num’,
‘posts_per_page’ => 4,
‘order’ => ‘ASC’,
) );
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post-photo”>
<div class=”thumbnail opacity”>”><?php the_post_thumbnail(‘thumbnail’); ?></div>
<p><?php the_title();?></p><br/>
<div class=”bouton-6″>voir l’album</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
or i used this but it doesn’t work
<?
$currentdate = date(“Y-m-d”,mktime(0,0,0,date(“m”),date(“d”)-1,date(“Y”)));
query_posts( array(
‘meta_query’=> array(
array(
‘key’ => ‘event_date’,
‘compare’ => ‘>’,
‘value’ => $currentdate,
‘type’ => ‘DATE’,
)),
‘post_type’ => ‘concerts’,
‘meta_key’ => ‘event_date’,
‘orderby’ => ‘meta_value_num’,
‘posts_per_page’ => 4,
‘order’ => ‘ASC’,
‘paged’ => $paged ) );
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post-photo”>
<div class=”thumbnail opacity”>“><?php the_post_thumbnail(‘thumbnail’); ?></div>
<p><?php the_title();?></p><br/>
<div class=”bouton-4″>“>voir l’album</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.