Hello and sorry for delay..i continue to have a problem on Maps. So if i go on front-end i not see a maps with location and list of post but see the map in the ocean.
Is possibile to fix it?
Hello..sorry i wrong put “resolve” on my post 🙁
Thanks to your reply.
I not display the maps….attach the export file.
Hello thanks for reply. I try but now have a blank page.
Thanks for information.
I set this code:
$idinsiede = get_cat_ID( $catprima[0]->cat_name);
$args = array(
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'url_field_past',
'compare' => '=',
'value' => ''
),
array(
'key' => 'url_field_past',
'compare' => 'NOT EXISTS',
)
)
);
$the_posts = get_posts($args);
echo <pre>;
print_r($the_posts);
global $args;
$query = "SELECT count FROM $args->term_taxonomy WHERE term_id = $idinsiede";
$num = $wpdb->get_col($query);
$ins = $num[0]-1;
Is it right?
Hello, thanks for reply. No, not work.
I try to put before
$catid= "";
/*foreach((get_the_category()) as $category) {
$catid = $category->cat_ID . ' ';
}*/
But continue to see the post that have value on custom field on loop latest post. Any new idea?
Hello,
i have one more problem. I have, under post, a row where see a “Read Also” and i need in this page not appeare the post have url_field_past field.
This is my code:
Thanks
Hello,
thanks. Good 🙂
Do you know if is possibile limit the excerpt of post (with a specific number) in relationship if my field (url_field_past) has use?
For example
if get_field (‘url_field_past) else limit_content(get_the_excerpt() 500,); ?
Hello…no i’ve alredy setting the crop thumbnail” but i have alredy the problem. I have one photo in one line. I can’t setting two photo in the same line 🙁
Hello i solve my question with this code:
<?php if ( get_post_meta( get_the_ID(), 'indirizzo', true ) ) : ?><p><span class="list">
<?php _e( 'Indirizzo: '); ?>
</span>
<?php the_field('indirizzo'); ?> </p><?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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.