Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dueckjon

    (@dueckjon)

    Hi Brook,

    The issue was that the Events Calendar datepicker was losing before the jquery-ui. Manually adding the jQuery-ui before the calendar scripts worked, but isn’t very good practice. Is there any way to rearrange how the Events Calendar scripts are loading?

    Thread Starter dueckjon

    (@dueckjon)

    Hi Brook,

    When I switch themes, that error is no longer there, but when I’m in my custom theme, even with other plugins turned off, i’m seeing that error.

    Thread Starter dueckjon

    (@dueckjon)

    Hi Radoslav. Thanks for the response. I had figured that this wasn’t possible, but I thought I would check. Thanks for letting me know!

    Thread Starter dueckjon

    (@dueckjon)

    Edit: I am getting this error message in Inspector TypeError: undefined is not a function (evaluating 'm.bootstrapDatepicker(c.datepicker_opts)'), not sure if that could be affecting it.

    Thread Starter dueckjon

    (@dueckjon)

    Thanks Radoslav! Really appreciate your quick responses!

    Your code worked great when the files were one or the other. In my situations it can be both files, or one or the other, so I took your code a bit further by adding another if statement at the beginning. This might be helpful to others as well.

    <?php foreach( get_uf_repeater( 'upload' ) as $document_files ): extract( $document_files ) ?>
    
    	<article class="row uploads">
    
    		<div class="col-xs-10  col-lg-11 clearfix">
    			<h4><?php echo $unitdoc_title ?></h4>
    
    			<?php if( isset( $document_files[ 'unitdoc_pdf' ] ) && $document_files[ 'unitdoc_doc' ] ): ?>
    				<a href="<?php echo $unitdoc_pdf ?>" class="btn pdf">.PDF</a>
    				<a href="<?php echo $unitdoc_doc ?>" class="btn doc">.PDF</a>
    			<?php elseif( isset( $document_files[ 'unitdoc_pdf' ] ) && $document_files[ 'unitdoc_pdf' ] ): ?>
    				<a href="<?php echo $unitdoc_pdf ?>" class="btn pdf">.PDF</a>
    			<?php endif ?>
    			<?php elseif( isset( $document_files[ 'unitdoc_doc' ] ) && $document_files[ 'unitdoc_doc' ] ): ?>
    				<a href="<?php echo $unitdoc_doc ?>" class="btn doc">.DOC</a>
    			<?php endif ?>
    		</div>
    
    	</article>
    
    <?php endforeach ?>
    Thread Starter dueckjon

    (@dueckjon)

    Vinod,

    Wow, I’m not sure how I missed that.
    Thank you for the thorough answer.

    Thread Starter dueckjon

    (@dueckjon)

    Thanks Radoslav! I’ve added the developer version to the site and replaced the “get_uf” function with “get_uf_repeater” as you suggested and it’s working like a charm! Thanks for you quick work and response.

Viewing 7 replies - 1 through 7 (of 7 total)