I found a nasty js solution which works with tables.
How TO – Sort a Table
This case work nice ONLY if someone loads all the values in the same page.
I finally found it:
<?php if( have_rows('mdb_artist') ): ?>
<?php while( have_rows('mdb_artist') ): the_row();
$content = get_sub_field('mdb_artist_field');
?>
<a href="<?php echo get_term_link( $content[0]->term_id ); ?>"><?php echo $content[0]->name; ?></a>
<br>
<?php endwhile; ?>
<?php endif; ?>
It is deeper that i thought!
In case that you can’t find anything else… make url-field to text-field and will work 100%
<a href="<?php echo get_post_meta($post->ID, 'Url', true); ?>"><?php echo get_post_meta($post->ID, 'Url', true); ?></a>
What kind of field type you used?
I check text field and it is ok.
A simple way is to add css “text-transform: uppercase;” in div or a that you load this field.
To do this in real time you need js…
<input id="remember" name="remember" type="checkbox" onclick="validate()" />
<script type="text/javascript">
function validate() {
if (document.getElementById('remember').checked) {
alert("Checked"); //Here you can print your date
} else {
alert("Unchecked");
}
}
</script>
You can double the fields in every language you use
For example
<?php if( pll_current_language() == 'en' ): ?>
<?php echo get_post_meta($post->ID, 'cinema_text', true); ?>
<?php elseif( pll_current_language() == 'gr' ): ?>
<?php echo get_post_meta($post->ID, 'cinema_text_gr', true); ?>
<?php endif; ?>
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.