gabrielcupim
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: “EDIT PRODUCT” page broke after updating WordPressSorry guys, I just kept reading and eventually found a fix by installing “Classic Editor” plugin.
Leaving the post here, in case it helps anybody in the future.Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Don’t search in product descriptionby the way, I tried this code I found, but it doesn’t work properly.
It ruins my “AND” search logic, and still searches within excerpts.ex: searching for “Uncharted 3” gets me a lots of products with the character “3” which are in excerpts
function ni_search_by_title_only( $search, &$wp_query ){
global $wpdb;
if ( empty( $search ) )
return $search;
$q = $wp_query->query_vars;
$n = ! empty( $q[‘exact’] ) ? ” : ‘%’;
$search =
$searchand = ”;
foreach ( (array) $q[‘search_terms’] as $term ) {
$term = esc_sql( like_escape( $term ) );
$search .= “{$searchand}($wpdb->posts.post_title LIKE ‘{$n}{$term}{$n}’)”;
$searchand = ‘ AND ‘;
}
if ( ! empty( $search ) ) {
$search = ” AND ({$search}) “;
if ( ! is_user_logged_in() )
$search .= ” AND ($wpdb->posts.post_password = ”) “;
}
return $search;
}
add_filter( ‘posts_search’, ‘ni_search_by_title_only’, 500, 2 );===============
The code above is not running at the moment.Thank you so much ILLID.
Can’t see any “Exact search” checkbox or option in the settings page.
I’m using 1.35, seems to be the newest for PRO version.
There is a update message to 1.78 firmware, but in the standard AWS version (deactivated at the time)
- This reply was modified 5 years, 3 months ago by gabrielcupim.
Thank you so much ILLID, just sent you some files.
Couldn’t get the whole theme at the moment, but I’m working in it.
Please tell me if you need more! Thanks again.Thanks for the support!
My theme name is “Savassi Games Theme”I remember that when the company that developed the site for us delivered the product, the only way to effectively search was clicking the search button, hitting “enter” didn’t do anything at the time.
But they “fixed” it soon afterwards (not entirely it seems)
Guys, just tried “Permalink Panager” to try this, but it didn’t work.
On “Regenerate/Reset” I get 3 modes on “MODE” dropdown menu:Regenerate Custom Permalinks
Regenerate Native Slugs
Use Original URL as Custom PermalinkNone of the 3 worked for me.
I still got lot of products with new names, with their old names in the permalink URL