Synocloud
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Orderby RelevanssiNo, it appears to load in about the same time. I suppose the user could probably modify the original
$wp_query
, but I needed to specify a different posts_per_page than was set globally.Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Orderby RelevanssiGood idea!
Got it to work. My PHP is not super strong, so this may be crude, but If anyone is interested, here’s what I have in my search.php
global $wp_query; // Detect to see if Relevanssi is active include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'relevanssi/relevanssi.php' ) || is_plugin_active( 'relevanssi-premium/relevanssi.php' ) ) { // Get the search query $search_query = get_search_query(); // Create a new WP_Query, so you can specify additional parameters (like posts_per_page) $relevanssi_query = new WP_Query(array( 's' => $search_query, 'posts_per_page' => 10 )); // Use the Relevanssi engine to query the posts // using the new search query relevanssi_do_query($relevanssi_query); // Create an array to store the IDs for use in the ALM shortcode $relevanssi_post_ids_arr = array(); if ( $relevanssi_query->have_posts()) : while ($relevanssi_query->have_posts()) : $relevanssi_query->the_post(); // Add the post ID to the array $relevanssi_post_ids_arr[] = $post->ID; endwhile; endif; // var_dump($relevanssi_post_ids_arr); $relevanssi_post_ids = implode(', ', $relevanssi_post_ids_arr); // Echo the shortcode echo do_shortcode("[ajax_load_more post_type='post' post__in='$relevanssi_post_ids']"); }
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Orderby RelevanssiHey Andy,
Thanks for getting back to me. After doing exactly that, the posts fail to load on the front and my console log shows an internal error being thrown. Running Relevanssi 3.5.3 and Ajax Load More v2.10.1. I think you meant at line 625 of ajax-load-more.php? Nevertheless, no luck.
I’m certain the condition is being met. But anything put inside there prevents the plugin from loading posts.
Any other ideas? Appreciate your help!
dcooney, some investigation and an action hook would be very helpful. It’s not uncommon for users to use Relevanssi in place of the default WP search.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Orderby RelevanssiHi,
Did you figure out a way to add this to the shortcode? I think the template must have changed since this was first posted because inserting that conditional at line 584 is not working for me.
I would really appreciate being able to do this.
Thank!
Forum: Fixing WordPress
In reply to: Update button not working after upgrade to WordPress 4.3I was having the same issue.
Turns out I was running an old version of ACF Pro. When I upgraded to 5.3.0 it fixed it.
Hope that helps.
Thanks for getting back to me!
I notice that when I click upload file the console logs this error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) .../aviary-image-editor-add-on-for-gravity-forms/includes/upload.php
Anyway I have uploaded a test version that you can have a look at.
https://dyi.li/5L3
That URL will expire in 7 days.I’m working on Chrome 38 on a Macbook Pro.
Thank you so much for your help on this, your plugin has already saved me loads of time. I’ll be sure to donate ??