Support

Account

Forum Replies Created

  • Hello everybody,
    I came across these threads and I am currently trying on the same topic. My repeater sits inside an option page and is queried by within a flexible layout. Unfortunately, it does not work that way, what’s wrong with the code?

    <?php if (get_sub_field('sidebar_submenus') == 'sm-1') : ?>	
    <?php
    $rows = get_field('submenus', 'option' );
    $specific_row = $rows[0];
    $sub_field_value = $specific_row['submenus_content'];
    $submenu = get_field( $sub_field_value, 'option' );
    ?>
    <?php echo $submenu[0]; ?>	  
    <?php endif; ?> 

    Thank you very much in advance
    lexx

  • Thank you very much 🙂

  • question is solved, it seems that it was a problem of Firefox cache or antivir software.

    Thank you for your help

  • Good morning John,

    thank you for yor support. Yes, the script is loading:

    
    <script type="text/javascript">
    
    /* <![CDATA[ */
    var accordionShortcodesSettings = [{"id":"accordion-1","autoClose":true,"openFirst":true,"openAll":false,"clickToClose":false,"scroll":false},{"id":"accordion-2","autoClose":true,"openFirst":true,"openAll":false,"clickToClose":false,"scroll":false}];
    /* ]]> */
    </script>
    <script src="http://www.dsmc-online.de/wp-content/plugins/accordion-shortcodes/accordion.min.js?ver=2.2.4" type="text/javascript">
    !function(o){"use strict";var t,e;o.fn.accordionShortcodes=function(t){function e(){return o(this).hasClass("open")?h.clickToClose&&i(o(this)):(h.autoClose&&s.each(function(){i(o(this))}),n(o(this),!0)),!1}function n(t,e){t.next().clearQueue().stop().slideDown(l,function(){e&&h.scroll&&o("html, body").animate({scrollTop:o(this).prev().offset().top-h.scrollOffset},l)}),t.addClass("open read").attr({"aria-selected":"true","aria-expanded":"true"}).next().attr({"aria-hidden":"false"})}function i(o){o.next().slideUp(l),o.removeClass("open"),o.attr({"aria-selected":"false","aria-expanded":"false"}).next().attr({"aria-hidden":"true"})}var s=this.children(".accordion-title"),a=this.children(".accordion-content").hide(),c=s.first(),r=(a.first(),o(window.location.hash)),l=250,h=o.extend({autoClose:!0,openFirst:!1,openAll:!1,clickToClose:!1,scroll:!1},t);return o(".accordion").removeClass("no-js"),h.scrollOffset=0|Math.floor(parseInt(h.scroll)),r.length&&r.hasClass("accordion-title")?n(r,!0):h.openAll?s.each(function(){n(o(this),!1)}):h.openFirst&&n(c,!1),s.click(e),s.keydown(function(t){var e=t.which;(13===e||32===e)&&o(this).click()}),o(window).on("hashchange",function(){r=o(window.location.hash),r.length&&r.hasClass("accordion-title")&&(h.autoClose&&s.each(function(){i(o(this))}),n(r,!0))}),this};for(var t=0;t<accordionShortcodesSettings.length;t+=1)e=accordionShortcodesSettings[t],o("#"+e.id).accordionShortcodes(e)}(jQuery);
    </script>
    <script type="text/javascript">
    
    		(function() {
    			var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)');
    
    			request = true;
    
    			b[c] = b[c].replace( rcs, ' ' );
    			b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
    		}());
    	
    </script>
    
  • thank you very much!! it is ‘get_sub_field’ and not ‘get_the_sub_field’, but the rest works fine. Great!!

  • hi
    thank you for this suggestion, but it doesn´t work for me

    <div class="entry-content">
        		<?php the_content(); ?>
    		<?php
    			wp_link_pages( array(
    				'before' => '<div class="page-links">' . __( 'Pages:', 'pictorico' ),
    				'after'  => '</div>',
    			) );
    		?>
            <?php if(get_field('spalten')): ?>
              <?php while(has_sub_field('spalten')): ?>
              <div class="columns">
              <div class="col-left"><?php 
    		  $wysiwyg = the_sub_field('linke_spalte', false, false); 
    		  echo apply_filters('the_content', $wysiwyg);
    		  ?></div>
              <div class="col-right"><?php 
    		  $wysiwyg = the_sub_field('rechte_spalte', false, false); 
    		  echo apply_filters('the_content', $wysiwyg);
    		  ?></div>
              </div>
              <?php endwhile; ?>
              <?php endif; ?>
    	</div><!-- .entry-content -->

    http://wp.bieblwerk.de/agentur/
    I´m using a repeater field, are ther any other options?
    Thank you very much

  • same problem here :(( any new results to fix the problem? Nextgen galleries do not work in my wysiwyg repeater fields…

    btw… nextgen gallery 1.9 works!

  • Thank you for your suggestions. I ´m afraid it is not very clear for me

    This is what I pasted in functions.php

    function custom_field_excerpt() {
    	global $post;
    	$text = the_sub_field('two-col');
    	if ( '' != $text ) {
    		$text = strip_shortcodes( $text );
    		$text = apply_filters('the_content', $text);
    		$text = str_replace(']]>', ']]>', $text);
    		$excerpt_length = 10; // 20 words
    		$excerpt_more = apply_filters('excerpt_more', ' ' . '...');
    		$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    	}
    	return apply_filters('the_excerpt', $text);
    }
    function custom_field_excerpt_longer() {
    	global $post;
    	$text = the_sub_field('two-col');
    	if ( '' != $text ) {
    		$text = strip_shortcodes( $text );
    		$text = apply_filters('the_content', $text);
    		$text = str_replace(']]>', ']]>', $text);
    		$excerpt_length = 25; // 20 words
    		$excerpt_more = apply_filters('excerpt_more', ' ' . '...');
    		$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    	}
    	return apply_filters('the_excerpt', $text);
    }

    and this is my repeater set

    	<div class="entry-content">
    		<?php the_content(); ?>
    		<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>   
                        <!-- Spalten -->
        <?php if(get_field('set')): ?>
        <div>
          <?php while(has_sub_field('set')): ?>
          <div class="paragraph">
               <div class="two-col">
              <?php the_sub_field('two-col'); ?>
            </div>
            <div class="left-col">
              <?php the_sub_field('left-col'); ?>
            </div>
            <div class="right-col">
              <?php the_sub_field('right-col'); ?>
            </div>
          </div>
          <?php endwhile; ?>
        </div>
        <?php endif; ?>      
    	</div><!-- .entry-content -->

    I ´m not sure how to call the function here

Viewing 9 posts - 1 through 9 (of 9 total)