ddpweb
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Job Board] Remove Resume From Application FormThank you so much!
Forum: Plugins
In reply to: [Simple Job Board] Remove Resume From Application FormIt’s a client request
Forum: Plugins
In reply to: [Simple Job Board] Remove Resume From Application FormHi, I’d love to also make the file upload field ‘not required’, is that possible?
Forum: Plugins
In reply to: [WP Store Locator] Not working on MobileSame issue here.
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] do not work after updateYep. Ditto. Had to downgrade.
Forum: Plugins
In reply to: [WooCommerce] Category columns breaking v3.6Yes, I did that. And even with my css overrides disabled it still doesn’t work.
I’ve opened a ticket with Themify.
Forum: Plugins
In reply to: [WooCommerce] Category columns breaking v3.6Since it works with the themify parent theme, I’ll reach out to Themify
Forum: Plugins
In reply to: [WooCommerce] Category columns breaking v3.6Looks like you caught the site when I was switching themes.
I don’t have anything in my child theme except a css overrides file, and a function to disable the image zoom thing, and I’ve disabled both.
Forum: Plugins
In reply to: [WooCommerce] Category columns breaking v3.6Ok, well. Nevermind fellas.
I just changed the theme to the parent, instead of my child theme, and it works. Which means there is an override in my child theme somewhere causing the issue.
Dang it!
Why does updating WooCommerce have to be such a pain in the ASS.
Forum: Plugins
In reply to: [WooCommerce] Category columns breaking v3.6Yes, I already tried that. Same issue. I had to revert on the live site.
Here’s the staging site with the latest themify Ultra theme v2.5.3
and WooCommerce v3.7https://mazestaging.wpengine.com/product-category/time-savers/
un: demo
pw: fe66d37c27ecHi @dcooney,
Ok, I’ve figured this out, kind of. It seems that the code I have in the functions.php file that dynamically truncates the excerpt with the … and ‘more’ link works more consistenly than having that more link in the content-grid loop. For what ever reason.
But it does not play nice with the custom excerpt length. So I had to revert back to the standard ‘excerpt’ syntax and rely on that field override for each post.
I had this code commented out on the live site, and was using the link in the loop instead with the custom length of the excerpt. But turing this on and commenting that link out of the loop makes it more consistent.
It’s on the staging site now for the client to review. Hopefully they’ll just approve this, and I’ll migrate that change over.
Just wanted you to know.
/** ==================================================== * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and adapt_continue_reading_link(). * * To override this in a child theme, remove the filter and add your own * function tied to the excerpt_more filter hook. */ function adapt_auto_excerpt_more( $more ) { return ' …' . adapt_continue_reading_link(); } add_filter( 'excerpt_more', 'adapt_auto_excerpt_more' ); /** * Returns a "Continue Reading" link for excerpts - works with function below */ function adapt_continue_reading_link() { return ' <a class="read-more" href="'. esc_url( get_permalink() ) . '">' . __( '<em>More</em>', 'adapt' ) . '</a>'; } /** * Adds a pretty "More" link to custom post excerpts. * * To override this link in a child theme, remove the filter and add your own * function tied to the get_the_excerpt filter hook. */ function adapt_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= adapt_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'adapt_custom_excerpt_more' ); //==================================================== */
ok, it’s a mystery then.
I’m only using one content template for that loop. It feeds the following page and archive templates.
This is my repeater loop: content-grid.php
and the syntax for it as at the top of this thread.
I’m feeding this into:
archive.php
category.php
page-on-the-wall.phpUsing the same AJAX Load button code for each. And the same loop syntax.
I really appreciate your responses man.
I guess I have to start pulling things apart until I find where the conflict is.
Do I need to add something to the Load More button syntax to make the excerpt be consistent?
Here is the code I’m using for the button
<?php get_template_part( 'content-grid', get_post_format() ); ?> <?php endwhile; wp_reset_query(); // Ajax Load More $post__not_in = ''; if($do_not_duplicate){ $post__not_in = implode(',', $do_not_duplicate); } echo do_shortcode('[ajax_load_more post__not_in="'.$post__not_in.'" container_type="div" post_type="post" posts_per_page="24" pause="true" transition="fade" scroll="false" images_loaded="true" offset="1" button_label="Load More"]'); ?>
Here’s the code I’m using for the custom excerpt on functions.php
/** * Sets custom excerpt length. */ function excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('<code>[[^]]*]</code>','',$excerpt); return $excerpt; } function content($limit) { $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('/[.+]/','', $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } /* Now, in every place where you use the_excerpt() or the_content() in your loop, use excerpt($limit) or content($limit). eg echo excerpt(30)*/
Thank you for the reply. I tried this modification, but it’s doing the same thing.
I’ve had a lot of issues with this Load More button. Something is stripping things out.
I’ve been able to resolve all but two things.1. The More link doesn’t render inside that ‘more’ loop
and
2. The custom excerpt is also not respectedIs there any insight you could share about this? Client is super picky about things being consistent.