Continue reading GeneratePress: Query Loop

GeneratePress: Query Loop

Relevanssi doesn’t work automatically with the Query Loop block in GeneratePress and GenerateBlocks. Fortunately, the solution is simple: the Query Loop block has a filter hook for adjusting the query parameters, and you can use that filter hook to enable Relevanssi. Add this to your site: Thanks to Ben Knowles. If you are using V2…

Read more GeneratePress: Query Loop 0 Comment on GeneratePress: Query Loop
Continue reading Gutenberg Full Site Editing

Gutenberg Full Site Editing

There’s a compatibility issue between Relevanssi and Gutenberg Full Site Editing. No results are found when you create a Query Loop to display the search results with Relevanssi enabled. The blank results happen because the post template block doesn’t use the Relevanssi results but instead uses a new WP_Query. Since Relevanssi still blocks the default…

Read more Gutenberg Full Site Editing 2 Comments on Gutenberg Full Site Editing
Continue reading OceanWP

OceanWP

…$post->blog_id ); } ?> <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>> <div class=”search-entry-inner clr”> <?php // Featured Image. get_template_part( ‘partials/search/thumbnail’ ); ?> <div class=”search-entry-content clr”> <?php // Title. get_template_part( ‘partials/search/header’ ); // Content. get_template_part( ‘partials/search/content’ ); // Read more button. get_template_part( ‘partials/search/readmore’ ); ?> </div><!– .search-entry-content –> </div><!– .search-entry-inner –>……file partials/search/content.php with this content: <?php /** * Search result page entry content * * @package OceanWP WordPress theme */ // Exit if accessed directly. if ( ! defined( ‘ABSPATH’ ) ) { exit; } global $post; // Excerpt length. $length = apply_filters( ‘ocean_search_results_excerpt_length’, ’30’ ); ?> <div class=“search-entry-summary clr”<?php……oceanwp_schema_markup( ‘entry_content’ ); ?>> <p> <?php the_excerpt(); ?> </p> </div><!– .search-entry-summary –> Now when you enable the child theme, this will make sure OceanWP always uses the_excerpt() to print out the excerpt, and the Relevanssi-created excerpts will appear. Highlighted titles If you want highlights in the post titles in search

Read more OceanWP 0 Comment on OceanWP