marcqdigital
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Search with Algolia] Instant Search showing wrong content snippet?I’m not sure what the issue was, but it luckily ended up clearing up on it’s own ??
Forum: Plugins
In reply to: [WP Search with Algolia] Instant Search showing wrong content snippet?I’ve made similar adjustments to each of my sites, on the site with issues here are my customizations:
// Customize Algolia index fields function my_post_attributes( array $attributes, WP_Post $post ) { $attributes['post_title'] = strip_tags(get_the_title($post)); if($post->post_excerpt) { $attributes['post_excerpt'] = strip_tags(get_the_excerpt($post)); } else { $attributes['post_excerpt'] = ''; } if(get_field('Slug', $post->ID)) { $attributes['kicker'] = get_field( 'Slug', $post->ID ); } if(get_the_post_thumbnail($post)) { $attributes['images']['thumbnail']['url'] = qdigital_get_the_post_thumbnail_url($post, 340, 340, 'smart'); } if(get_field('byline', $post->ID)) { $attributes['post_author']['display_name'] = get_field( 'byline', $post->ID ); } // Always return the value we are filtering. return $attributes; } add_filter( 'algolia_searchable_post_shared_attributes', 'my_post_attributes', 10, 2 );
I’m not making any adjustments to the content however.
Forum: Plugins
In reply to: [WP Search with Algolia] Instant Search showing wrong content snippet?I have four other sites that also use this plugin and they are all working properly. All sites are on version 2.8.1 of the plugin.
Forum: Plugins
In reply to: [WP Search with Algolia] Pagination links brokenThanks for checking, sorry about that! I must have been testing the urls while I had the search bar blank
Forum: Plugins
In reply to: [WP Search with Algolia] Pagination links brokenSure!: https://www.intomore.com/?s
Forum: Plugins
In reply to: [WP Search with Algolia] Lots of duplicate records for posts in my indexOh I see, thank you so much for the clarification!
Hi Rolf,
Thank you so much for your quick response! The sitemap was loading the main page but yielding empty results for all post pages. The other thread you linked to was the fix though, thank you! I’ve got it in place for now and looking forward to the next update.
I also have an error for the /sitemap-posttype-page.xml that looks like this: PHP Fatal Error · Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes). The pages xml page displays an error currently. I only have 70 some pages, seems strange to me?
@jrefuerzo by asking this question does this mean that Pantheon isn’t currently compatible with Wordfence? If so, it would be great if your team updated this doc: https://pantheon.io/docs/plugins-known-issues#wordfence