BuenaPalomeno
Forum Replies Created
-
add_filter('relevanssi_modify_wp_query', 'researh_lib_tax_query'); function researh_lib_tax_query($query) { $tax_query = array(); $authors = explode('+',$query->query_vars['authors']); $stages = explode('+',$query->query_vars['stages']); if (!empty($query->query_vars['authors'])) { $tax_query[] = array( 'taxonomy' => 'author', 'field' => 'slug', 'terms' => $authors ); } if (!empty($query->query_vars['stages'])) { $tax_query[] = array( 'taxonomy' => 'development_stage', 'field' => 'slug', 'terms' => $stages ); } if (!empty($tax_query)) { $tax_query['relation'] = 'AND'; // you can also use 'OR' here $query->set('tax_query', $tax_query); } return $query; }
This is my code. I’m passing the checkboxes value to a hidden field that will be passed to the query vars. Is this correct? How will I know if this is working? And how can I use this to display search results?
Thanks
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Highlight Post TitleHello,
Thanks for your response. I was wondering what am I doing wrong.
This is my code:
add_filter( 'genesis_post_title_output', 'child_post_title_output', 15 ); function child_post_title_output( $title ) { global $post; // change h2 to h1 depending if you have a search page title or not if ( function_exists( 'relevanssi_get_the_title' ) ) { $title = sprintf( '<h2 class="entry-title" itemprop="headline"><a href="%s" rel="bookmark">%s</a></h2>', esc_url( get_permalink() ), apply_filters( 'genesis_post_title_text', relevanssi_get_the_title( $post->ID ) ) ); } return $title; }
But titles on search is still not highlighted. But once I remove the
$post->ID
from functionrelavanssi_get_the_title()
titles are highlighted but with errors:
“Warning: Missing argument 1 for relevanssi_get_the_title(), called in /home/groupo10/public_html/wp-content/themes/lifestyle-pro/functions.php on line 171 and defined in /home/groupo10/public_html/wp-content/plugins/relevanssi/lib/common.php on line 692”why is that?
Thanks!
How can I know if my eWay account is enabled for sandbox?
Hello Ross,
I used 8-digit customer ID. The one that i see on the footer of my account in eWay.
Forum: Plugins
In reply to: [Eway Payment Gateway] Use my own Customer ID for Sandbox TestingThanks! ??
Forum: Plugins
In reply to: [Firelight Lightbox] Cannot scroll down when height is 520pxhello, RavanH
Sorry!! Here is the link to the example: https://musicedushop.com.au/landing-page/
click the Sign Up button then scroll down on the page. The popup box can’t scrolldown while the login pop up can.
Thanks. Sorry for not clearing the question.
Forum: Fixing WordPress
In reply to: Links and hovers w/ ButtonsHello there, jadams1974!
Add this code at the end of your theme’s style.css:
a.button {
color: #fff;
}
and
a.button:hover {
color: #fff;
}see if it works.
Forum: Fixing WordPress
In reply to: Widget genericon helpTo make the icons larger, just changed the font-size of the icons. In your theme’s style.css put this one maybe at the end of the code:
.genericon span.screen-reader-text{ font-size: 2em; }
see if this works.