BeTheme compabitility
-
Hello,
I can’t seem to get this plugin to work with BeTheme. Do you have any suggestions on how to debug it? Search results are always empty.
-
I don’t anything about BeTheme. Can you show me the search results template?
<?php /** * The search template file. * * @package Betheme * @author Muffin group * @link https://muffingroup.com */ get_header(); $translate['search-title'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-title','Ooops...') : __('Ooops...','betheme'); $translate['search-subtitle'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-subtitle','No results found for:') : __('No results found for:','betheme'); $translate['published'] = mfn_opts_get('translate') ? mfn_opts_get('translate-published','Published by') : __('Published by','betheme'); $translate['at'] = mfn_opts_get('translate') ? mfn_opts_get('translate-at','at') : __('at','betheme'); $translate['readmore'] = mfn_opts_get('translate') ? mfn_opts_get('translate-readmore','Read more') : __('Read more','betheme'); ?> <div id="Content"> <div class="content_wrapper clearfix"> <!-- .sections_group --> <div class="sections_group"> <div class="section"> <div class="section_wrapper clearfix"> <?php if( have_posts() && trim( $_GET['s'] ) ): ?> <div class="column one column_blog"> <div class="blog_wrapper isotope_wrapper"> <div class="posts_group classic"> <?php while ( have_posts() ): the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class( array('post-item', 'clearfix', 'no-img') ); ?>> <div class="post-desc-wrapper"> <div class="post-desc"> <?php if( mfn_opts_get( 'blog-meta' ) ): ?> <div class="post-meta clearfix"> <div class="author-date"> <span class="author"><span><?php echo $translate['published']; ?> </span><i class="icon-user"></i> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo get_the_author_meta( 'display_name' ); ?></a></span> <span class="date"><span><?php echo $translate['at']; ?> </span><i class="icon-clock"></i> <?php echo get_the_date(); ?></span> </div> </div> <?php endif; ?> <div class="post-title"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> </div> <div class="post-excerpt"> <?php the_excerpt(); ?> </div> <div class="post-footer"> <div class="post-links"> <i class="icon-doc-text"></i> <a href="<?php the_permalink(); ?>" class="post-more"><?php echo $translate['readmore']; ?></a> </div> </div> </div> </div> </div> <?php endwhile; ?> </div> <?php // pagination if(function_exists( 'mfn_pagination' )): echo mfn_pagination(); else: ?> <div class="nav-next"><?php next_posts_link(__('← Older Entries', 'betheme')) ?></div> <div class="nav-previous"><?php previous_posts_link(__('Newer Entries →', 'betheme')) ?></div> <?php endif; ?> </div> </div> <?php else: ?> <div class="column one search-not-found"> <div class="snf-pic"> <i class="themecolor <?php mfn_opts_show( 'error404-icon', 'icon-traffic-cone' ); ?>"></i> </div> <div class="snf-desc"> <h2><?php echo $translate['search-title']; ?></h2> <h4><?php echo $translate['search-subtitle'] .' '. esc_html( $_GET['s'] ); ?></h4> </div> </div> <?php endif; ?> </div> </div> </div> <!-- .four-columns - sidebar --> <?php if( is_active_sidebar( 'mfn-search' ) ): ?> <div class="sidebar four columns"> <div class="widget-area clearfix <?php mfn_opts_show( 'sidebar-lines' ); ?>"> <?php dynamic_sidebar( 'mfn-search' ); ?> </div> </div> <?php endif; ?> </div> </div> <?php get_footer(); // Omit Closing PHP Tags
Nothing wrong with the template. You have built the index, with the correct post types in the index?
I’ve built the index with posts and pages and it gives me 0 hits no matter what I enter into the query. You can check for example https://szmigieldesign.pl/?s=internet
Try disabling other plugins or using one of the WordPress default themes. Does that help?
I have the same issue.
The result is always empty.The strange thing is, in the “stopwords” tab it finds ever single word ….
Do you have any idea ?Best,
Brezelfelder@brezelfelder, also BeTheme? Does disabling other plugins help? Does the search work if you switch to one of the default themes? If you install Query Monitor, does it display any warnings?
Hello Mikko,
thanks for your fast answer.
Query Monitor shows no Errors or warnings or slow querys.When I use another Theme it also finds nothing … But it also shows no Content.
I Think it is because of the way the content is stored.
But in another way the indexer is able to find every single word in the “stopword” tab, which is really strange …There is a big beTheme community “https://forum.muffingroup.com/betheme/”, I also aksed them if there are an changes regarding the wp-search. The answer is they haven’t changed anything regarding the the wordpress search.
BeTheme can store data created with its visual builder in three different ways – most notably serialized or encoded. However, if encoding was the case – Relevanssi would correctly index and display search results for post as I have posts written with default WordPress editor, not Muffin Builder. There must be something else filtering the results.
Even if the content is being stored in somewhere else, Relevanssi should be able to find posts by titles.
If you look at the Stopwords tab, does the “25 most common words” list make sense? That’s one way to take a look at how Relevanssi sees your posts.
If there’s nothing there, or just few words, then the problem is in indexing.
The serialized and encoded data is a problem: if that’s the case, you need to manually unserialize and decode the data for Relevanssi.
What do you mean with this: “But in another way the indexer is able to find every single word in the “stopword” tab, which is really strange …”
Add a filter function on
relevanssi_modify_wp_query
hook and have it print out something and then exit().add_filter('relevanssi_modify_wp_query', 'rlv_test'); function rlv_test($query) { var_dump($query); exit(); }
Does that print out anything?
If it does, try this:
add_filter('relevanssi_hits_filter', 'rlv_test_2'); function rlv_test_2($hits) { var_dump($hits); exit(); }
Does that print out a list of results?
Hello @msaari,
Thanks a lot for your Support.
We found a bug in the BeTheme and already wrote a Bug report the Theme Developer.Thanks a lot,
RalfMostly awesome! Thanks for your help. Let’s see if it gets fixed in next version.
“No results found for” as search output due to “Betheme” WordPress theme.
So, i have the same prolem.
As i see @szmigieldesign resolved this issue…
Can you help me? How to correct this problem?- This reply was modified 6 years, 9 months ago by Vedavrat.
Please help i cannot remove this error from my website…
Warning: count(): Parameter must be an array or an object that implements Countable in /home/jodphotography/public_html/wp/wp-includes/post-template.php on line 284
- The topic ‘BeTheme compabitility’ is closed to new replies.