-
Author
-
May 24, 2017 at 16:18 #162554
wilfriedMarseille
ParticipantHello
I use ACF and when i want make a form with <?php acf_form(); ?> I got a bug.
I can’t make a scroll down.And if i use another theme i don’t get the Bug.
I let you the link and my template.
I hope than you can help me but i’m not sure cause i use ACF ….
But the bug seems come from Kleo.
So let me know if you can help me thanks youMay 24, 2017 at 16:26 #162559wilfriedMarseille
Participantline 149 to see the ACF Form
COPY CODE<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ acf_form_head(); ?> <?php get_header(); ?> <?php //Specific class for post listing */ if ( kleo_postmeta_enabled() ) { $meta_status = ' with-meta'; if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) { $meta_status .= ' inline-meta'; } add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) ); } /* Related posts logic */ $related = sq_option( 'related_posts', 1 ); if ( ! is_singular('post') ) { $related = sq_option( 'related_custom_posts', 0 ); } //post setting if(get_cfield( 'related_posts') != '' ) { $related = get_cfield( 'related_posts' ); } ?> <?php get_template_part( 'page-parts/general-title-section' ); ?> <?php get_template_part( 'page-parts/general-before-wrap' );?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <div class="row"> <div class="col-md-3"><?php the_post_thumbnail('medium'); ?></div> <div class="col-md-3"> <h1 class="H1withoutTopMargin" style=" margin-top: 0px;"><?php the_field( 'acfArtistes_nomArtiste' ); ?></h1> <div class="social"> <ul class="menu simple rdo-social"> <?php if( get_field('acfArtistes_facebook') ): ?> <li><a href="<?php echo the_field('acfArtistes_facebook'); ?>"><i class="gplus"></i></a></li> <?php endif; ?> <?php if( get_field('twitter') ): ?> <li><a href="<?php echo the_field('twitter'); ?>"><i class="fa fa-twitter"></i></a></li> <?php endif; ?> <?php if( get_field('linkedin') ): ?> <li><a href="<?php echo the_field('linkedin'); ?>"><i class="fa fa-linkedin"></i></a></li> <?php endif; ?> <?php if( get_field('instagram') ): ?> <li><a href="<?php echo the_field('instagram'); ?>"><i class="fa fa-instagram"></i></a></li> <?php endif; ?> <?php if( get_field('github') ): ?> <li><a href="<?php echo the_field('github'); ?>"><i class="fa fa-github"></i></a></li> <?php endif; ?> <?php if( get_field('dribbble') ): ?> <li><a href="<?php echo the_field('dribbble'); ?>"><i class="fa fa-dribbble"></i></a></li> <?php endif; ?> <?php if( get_field('behance') ): ?> <li><a href="<?php echo the_field('behance'); ?>"><i class="fa fa-behance"></i></a></li> <?php endif; ?> </ul> </div> <div> <section class=activityArtiste> <p>ActivitĂ© : <?php // acfArtistes_Activity $field = get_field_object( 'acfArtistes_Activity' ); $value = $field['value']; $choices = $field['choices']; if ( $value ): foreach ( $value as $v ): echo $choices[ $v ]; endforeach; endif; ?> </section> <section class='pays'> <?php //Fonction Uppercase premier lettre : http://php.net/manual/fr/function.ucfirst.php $country = get_field('pays'); $country = ucfirst($country); ?> <p>Pays : <?php echo $country; ?></p> </section> <section class="birthdayArtiste"> <!-- https://www.gregoirenoyelle.com/acf-creer-une-date-intertionalisable/ --> <?php $date_d = get_field('acfArtistes_Birthday'); // Extraire Y,M,D $Y = substr($date_d, 0, 4); $M = substr($date_d, 4, 2); $d = substr($date_d, 6, 2); // CrĂ©er le format UNIX $time_d = strtotime("{$d}-{$M}-{$Y}"); ?> <p>NĂ© le : <?php echo date('d', $time_d); ?> <?php echo date_i18n('M', $time_d); ?> <?php echo date('Y', $time_d); ?> </p> </section> </div> </div> <div class="col-md-3"> <h1 class="H1withoutTopMargin">Label</h1> <?php $posts = get_field('acfArtistes_label'); if($posts): ?> <section class="LabelsListe"> <ul> <?php foreach( $posts as $post): // ne pas changer $post IMPORTANT setup_postdata($post); ?> <li> <?php the_post_thumbnail( array(80, 80) ); ; //https://developer.wordpress.org/reference/functions/the_post_thumbnail/?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endforeach; ?> </ul> </section> <?php wp_reset_postdata(); // IMPORTANT - rĂ©initialiser l'objet $post sur la requĂȘte principale endif; ?> </div> </div> <div class="col-md-6 col-sm-12 backOrange">dddd</div> <div class="col-md-6 col-sm-12 backGreen">ddd</div> </div> <div> <p>My custom field: <?php the_field('acfArtistes_Birthday'); ?></p> <?php get_template_part( 'content', get_post_format() ); ?> </div> <?php acf_form(); ?> <!-- Begin Comments --> <div class="aligncenter"> <h4 class="titleComments">Une question, une remarque, un avis ?</h4> <h4>Laissez nous un commentaire.</h4> </div> <?php if ( comments_open() || get_comments_number() ) { comments_template( '', true ); } ?> <!-- End Comments --> <?php get_template_part( 'page-parts/posts-social-share' ); ?> <?php if( $related == 1 ) { get_template_part( 'page-parts/posts-related' ); } ?> <?php if ( sq_option( 'post_navigation', 1 ) == 1 ) : // Previous/next post navigation. kleo_post_nav(); endif; ?> <?php endwhile; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>May 24, 2017 at 16:38 #162568Laura
ModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 28, 2017 at 14:17 #162848wilfriedMarseille
ParticipantSo now i can scrool now
But i saw an error.
I think is because i can’t modify header.
So do you know how can i say than the Kleo header could be change ?This is my error message :
Warning: strpos() expects parameter 1 to be string, array given in /home/zikreacotq/www/ZikreaGood/wordpress/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php on line 207
Notice: Array to string conversion in /home/zikreacotq/www/ZikreaGood/wordpress/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php on line 226
Warning: Cannot modify header information – headers already sent by (output started at /home/zikreacotq/www/ZikreaGood/wordpress/wp-content/plugins/advanced-custom-fields/core/fields/_functions.php:226) in /home/zikreacotq/www/ZikreaGood/wordpress/wp-includes/pluggable.php on line 1195
May 30, 2017 at 22:26 #163067Radu
ModeratorHi,
From what I see those notices are related to the plugin itself not to Kleo files.
So this it seems to not be a Kleo problem, but you can try to set wp_debug off, it should de-activate the notices and warnings
https://codex.wordpress.org/WP_DEBUG#Usage
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.