This topic has 4 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #162554
     wilfriedMarseille
    Participant

    Hello
    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 you

    If you love Ableton check my blog :
    www.zikrea.com

    #162559
     wilfriedMarseille
    Participant

    line 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(); ?>
    
    

    If you love Ableton check my blog :
    www.zikrea.com

    #162568
     Laura
    Moderator

    Hello, 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 solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #162848
     wilfriedMarseille
    Participant
    This reply has been set as private.
    #163067
     Radu
    Moderator

    Hi,

    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
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?