Forum Replies Created

Viewing 15 replies - 16 through 30 (of 34 total)
  • Thread Starter Sibbo100

    (@sibbo100)

    Hey Darren,

    It’s an ALM template that I am using sorry, the output is based on a custom WOP Query I was using during set up ??

    Thanks
    Scott

    Thread Starter Sibbo100

    (@sibbo100)

    Hi Darren,

    I have a page on a site that I’m building locally (so I can’t share URL I’m afraid), it’s a basic wordpress page (with a specific template) that I have a custom loop on which loops through the posts from a custom post type whilst still using your Ajax Load More.

    What I need is the ability to filter those posts using ‘category(a custom taxonomy)’, ‘tags’, another filter of some description (but that’s my problem to figure out, maybe an ACF custom field or something) and finally add a sort to display them in date or title order, all this needs to happen on the click of a submit button. Now I suspect some of my issues are due to the fact that I’m using a custom taxonomy but I’m not sure.

    Thanks
    Scott

    Thread Starter Sibbo100

    (@sibbo100)

    Hi Darren,

    Turns out it was a user error, I hadnb’t filled in the custom field date on one of the posts I was pulling through which was causing a meltdown.

    Thanks for looking into for me.
    Scott

    Thread Starter Sibbo100

    (@sibbo100)

    Hi Darren,
    So I’ve managed to narrow it down to a piece of code I am using in the repeater template, below is the snippet of the code that is causing the issue:

    
    <?php
        $date = get_field('downloads_date', $post->ID, false);
        $date = DateTime::createFromFormat('Y-m-d H:i:s', $date);
    ?>
        <p class="date">Updated on <?php echo $date->format('d F Y'); ?></p>
    

    As soon as I comment the above out the template works, basically I’m using an ACF date/time field on the site and need to be bale to remove the actual day and the time on this specific page (they need to appear on other pages), and the above is how I’ve managed to do that, but the Ajax Load More system doesn’t seem to like it after the first 60 items have loaded and I can’t see anything in the php.ini file that would cause this.

    This is the entire repeater template markup:

    
    <div class="publications-panel row">
        <div class="col-sm-12">
            <?php
            $date = get_field('downloads_date', $post->ID, false);
            $date = DateTime::createFromFormat('Y-m-d H:i:s', $date);
            ?>
    	<p class="date">Updated on <?php echo $date->format('d F Y'); ?></p>
        </div>
        <div class="col-sm-12">
    	<h3><?php the_title(); ?></h3>
        </div>
        <div class="col-sm-8">
    	<div class="copy"><p><?php the_excerpt(); ?></p><a href="<?php the_permalink(); ?>">Continue reading</a></div>
        </div>
        <div class="col-sm-4">
    	<p><?php the_tags('', ', ', ''); ?></p>
    	<ul class="topic-icons">
    	<?php
    	$field = get_field('header_icon');
    	?>
    	    <li>
    		<i title="<?php echo $field['label']; ?>" class="define <?php echo $field['value']; ?>" data-toggle="tooltip" data-animation="false"></i>
    	    </li>
    	</ul>
        </div>
    </div>
    

    A second pair of eyes and any thoughts would be greatly appreciated.

    Thanks
    Scott

    Thread Starter Sibbo100

    (@sibbo100)

    Yeah took me ages to find the previous version, installed rollback plugin but that didn’t work, eventually found the repository here: https://plugins.svn.www.ads-software.com/acf-link/tags/1.1.4/ but you have to download the files one at a time, hope this get resolved soon as this is on a live client site and it’s our policy to patch out of date plugins as soon as they are updated.

    Thread Starter Sibbo100

    (@sibbo100)

    Hey dcooney,

    Thanks for helping me along with this, I’ve managed to get it sorted by adding:
    jQuery('.milestone-background').unbind('click');
    just before on click function.

    Thanks again, got to try and get your plugin to work for multiple twitter feeds next that are displayed in the same way, wish me luck ??

    Thanks
    Sibbo100

    Thread Starter Sibbo100

    (@sibbo100)

    Yeah that’s what it looks like to me too, currently trying to run it as 2 different functions 1st click and 2nd click but no luck as of yet.

    Thread Starter Sibbo100

    (@sibbo100)

    Hey dcooney,

    Tried replacing:
    jQuery(document).ajaxComplete(function () {
    with
    jQuery.fn.almComplete = function(alm){
    and also tried putting it all in a function and it still does the same thing ??

    Thanks
    Sibbo100

    Thread Starter Sibbo100

    (@sibbo100)

    Hi dcooney,

    Thanks for the reply, I don’t think that is it, the code I’m using is:

    jQuery(document).ajaxComplete(function () {
    
    	jQuery('.hideshow .expand').css('display','none');
    	jQuery('.expandBtn span').removeClass('rotate');
       	// Watch for clicks on the "slide" link.
        //jQuery('.hideshow').click(function () {
    	jQuery('.milestone-background').on('click', '.hideshow', function(event){
    		event.preventDefault();
    		jQuery(this).find('span').toggleClass('rotate');
    		if(jQuery(this).next('.expand').css('display') === 'none'){
          		jQuery(this).next('.expand').slideDown(400);
    		}
    		else if(jQuery(this).next('.expand').css('display') === 'block'){
    			jQuery(this).next('.expand').slideUp(400);
    		}
        });
    	
    	var firstyear = jQuery('.milestone').data('year');
    	jQuery('.milestones-container .first span').html(firstyear);
    	
    	var lastyear = jQuery('.milestone').last().data('year');
    	jQuery('.milestones-container .update-year').html(lastyear);
    
    });

    so basically it’s kind of a timeline with various events on various years and each event has a click function that shows the full content, it works fine when page is initially loaded, but after the ajax load more has run, the click event opens the content then closes it straight away, I’m sure it’s something to do with the if else but not sure what.

    Thanks
    Sibbo100

    Thread Starter Sibbo100

    (@sibbo100)

    Hi dcooney,

    Sorry, another quick question, which isn’t really related to this post, but I’m having an issue with an .on(‘click’) event after the ajax data is loaded, basically once the second page of posts loads the on click which I’m using to show hide various different pieces of content opens and then closes straight away, where as when the page first loads it works perfectly. Any ideas or pointers in the right direction, I’ve been having some real issues with this part.

    Thanks again and awesome plugin
    Sibbo100

    Thread Starter Sibbo100

    (@sibbo100)

    Hi dcooney,

    Thank you so much for the speedy response, that worked a treat and loadmore is now working perfectly on that section of our clients site.

    Thank you
    Sibbo100

    Thread Starter Sibbo100

    (@sibbo100)

    Hi nosilver4u,

    Thank you very much for the quick responses on this one, I can confirm that the client is currently running PHP4.3 unfortunately I don’t manage their hosting at the moment but have made them aware about the dangers of this, they are moving hosting providers once that has happened I will be in a position to advise and change the versions of PHP etc that are being run on the server, in the meantime I will let them know that this issue is related to their outdated PHP.

    Look forward to your update.

    Thank you
    Sibbo100

    Thread Starter Sibbo100

    (@sibbo100)

    Hi,

    Please find attached a screen grab of some of the posts that are being flagged as Cloudinary Images, I’ve also included one that has finished processing and contains the Meta Data.

    Link to Screen Shot: https://www.thegateinteractive.com/FM-Cloudinary-Images.jpg

    Thank you

    Thread Starter Sibbo100

    (@sibbo100)

    Hi nosilver4u,

    I’ve turned on debugging and for some reason on the cloudinary images where the meta data should be it just says processing and it’s been saying that since I turned it on last Friday. Our client says that none of their images have come from cloudinary as it’s not a service they use and they want to know why these images are being flagged like this.

    I have however managed to check the Meta data using this website https://metapicz.com and I can’t see anything that references cloudinary, in fact the first image didn’t have any real meta data attached to it.

    Any other ideas on how I can check this out.

    Thank you
    Sibbo100

    Thread Starter Sibbo100

    (@sibbo100)

    Hi AACT,

    I originally used this [catlist post_type=”ai1ec_event” name=”netherurd”] and all it did was list all the events not just the ones with the specific category, I have subsequently just created a page template for this particular page and added the below code into it:


    <?php
    query_posts( array( 'post_type' => 'ai1ec_event', 'events_categories' => 'netherurd' ) );

    if ( have_posts() ) : while ( have_posts() ) : the_post();
    ?>
    <div class="nether_events_container">
    <div class="nether_events_images">
    <?php the_post_thumbnail( 'wpbs-featured' ); ?>
    </div>
    <div class="nether_events_txt">
    <h3>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></h3>
    <p class="post_date"><?php echo get_the_date( 'd/m/Y'); ?></p>

    <?php the_excerpt(); ?>
    </div>
    <div class="clearfix"></div>
    </div>

    <?php
    endwhile; endif;
    wp_reset_query();
    ?>

    which works a treat, I’m still using the plugin on other areas of the site which all work perfectly, but none of them are custom post types.

    rka, feel free to take the above code and add to your own custom template if required you should just need to change the
    ‘post_type’ => ”
    and also the
    ‘events_categories’ would need changing to whatever your custom post types category is called.

    Thanks
    Sibbo100

Viewing 15 replies - 16 through 30 (of 34 total)