Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › dont show tag in search results
- This topic has 14 replies, 2 voices, and was last updated 2 years ago by
profudeistorie.
-
AuthorPosts
-
May 7, 2024 at 9:36 am #48082
profudeistorie
ParticipantHi
I dont want to show tag in results search. How make this?
May 7, 2024 at 9:41 am #48083profudeistorie
ParticipantAnd one more:
– try to search ”2024” on https://oradeistorie.ro … Now results only tags, but after hide them, will not result nothing. But if you search ”bacalaureat 2024” will have results, but not good posts first. Why with „2024” not find, but with „bacalaureat 2024” find?!May 7, 2024 at 5:01 pm #48088Ernest Marcinko
KeymasterHi,
Make sure these options are all disabled: https://i.imgur.com/nniaGcf.png
By default they all should be disabled. It should resolve both issues.May 7, 2024 at 5:05 pm #48089profudeistorie
ParticipantHi
I made and is ok now, but:
– try to search ”2024” on https://oradeistorie.ro … Not result nothing. But if you search ”bacalaureat 2024” will have results, but not good posts first. Why with „2024” not find, but with „bacalaureat 2024” find?! Why?May 8, 2024 at 11:01 pm #48097profudeistorie
ParticipantResponse?
– try to search ”2024” on https://oradeistorie.ro … Not result nothing. But if you search ”bacalaureat 2024” will have results, but not good posts first. Why with „2024” not find, but with „bacalaureat 2024” find?! Why?
May 9, 2024 at 7:38 am #48098Ernest Marcinko
KeymasterIt is possibly an incorrect configuration.
Can you please add temporary back-end access so I can verify that?
May 9, 2024 at 7:40 am #48099profudeistorie
ParticipantYou cannot access this content.
May 9, 2024 at 7:54 am #48101Ernest Marcinko
KeymasterThanks!
The keyword logic options were incorrectly set. Keywords below 5 words were set to be excluded and exact matching was also enabled, which was not correct. I have changed it to the most optimal default configuration: https://i.imgur.com/BDRiDZu.png
Now I’m seeing much more relevant matches.
May 9, 2024 at 7:55 am #48102profudeistorie
ParticipantPerfect! Thanks so much! GJ!
May 9, 2024 at 7:56 am #48103Ernest Marcinko
KeymasterYou are very welcome 🙂
If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.
If you like the plugin and have not rated already, feel free to leave a rating on your codecanyon downloads page and on the wordpress plugin repository, it’s greatly appreciated.
May 14, 2024 at 12:01 pm #48138profudeistorie
ParticipantHi
I saw i have an error an results page: https://oradeistorie.ro/?s=bacalaureat&asp_active=1&p_asid=2&p_asp_data=1&customset%5B%5D=dlp_document&customset%5B%5D=glossary&customset%5B%5D=post&asp_gen%5B%5D=content&asp_gen%5B%5D=title&filters_initial=1&filters_changed=0&qtranslate_lang=0&asp_highlight=1¤t_page_id=44893
I have these error:
Warning
: urlencode() expects parameter 1 to be string, array given in
/var/www/clients/client1/web5/web/wp-content/themes/odiseea/functions.php
on line
499Warning
: urlencode() expects parameter 1 to be string, array given in
/var/www/clients/client1/web5/web/wp-content/themes/odiseea/functions.php
on line
499———————————
I dont know php and dont know to resolve these error. Can you help me, please?
My code from functions php is this:
/**
* Display navigation to next/previous set of posts when applicable.
* Based on paging nav function from Twenty Fourteen
*/
if ( ! function_exists( ‘opencode_paging_nav’ ) ) :function opencode_paging_nav() {
// Don’t print empty markup if there’s only one page.
if ( $GLOBALS[‘wp_query’]->max_num_pages < 2 ) {
return;
}$paged = get_query_var( ‘paged’ ) ? intval( get_query_var( ‘paged’ ) ) : 1;
$pagenum_link = html_entity_decode( get_pagenum_link() );
$query_args = array();
$url_parts = explode( ‘?’, $pagenum_link );if ( isset( $url_parts[1] ) ) {
wp_parse_str( $url_parts[1], $query_args );
}$pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link );
$pagenum_link = trailingslashit( $pagenum_link ) . ‘%_%’;$format = $GLOBALS[‘wp_rewrite’]->using_index_permalinks() && ! strpos( $pagenum_link, ‘index.php’ ) ? ‘index.php/’ : ”;
$format .= $GLOBALS[‘wp_rewrite’]->using_permalinks() ? user_trailingslashit( ‘page/%#%’, ‘paged’ ) : ‘?paged=%#%’;// Set up paginated links.
$links = paginate_links( array(
‘base’ => $pagenum_link,
‘format’ => $format,
‘total’ => $GLOBALS[‘wp_query’]->max_num_pages,
‘current’ => $paged,
‘mid_size’ => 3,
‘add_args’ => array_map( ‘urlencode’, $query_args ),
‘prev_text’ => esc_attr__( ‘«’, ‘opencode’ ),
‘next_text’ => esc_attr__( ‘»’, ‘opencode’ ),
‘type’ => ‘list’,
) );if ( $links ) :
?>
<nav class=”pagination” role=”navigation”>
<h1 class=”screen-reader-text”><?php esc_attr__( ‘Posts navigation’, ‘opencode’ ); ?></h1>
<?php echo $links; // function arguments escaped individually, see lines #348 thru #358 ?>
</nav><!– .navigation –><?php
endif;
}
endif;May 15, 2024 at 5:31 pm #48152Ernest Marcinko
KeymasterThe error is originated from the theme, it refers to this file:
/var/www/clients/client1/web5/web/wp-content/themes/odiseea/functions.phpI suggest asking the theme developer what exactly might be the issue, it looks like it’s a problem with the $query_args array, when it’s passed to the urlencode function, it might be multi-dimensional and for that the array_map will fail.
It does not seem to be realted to the plugin I’m afraid.
May 15, 2024 at 5:41 pm #48156profudeistorie
ParticipantHi
Yes, I know. I wrote you lines with code problem after I installed plugin.
I created this theme, but i make copy-paste in search. I know only html and css, not php. I didnt have error before this plugin.Can you help me? I really like your plugin and I dont want to refund.
May 15, 2024 at 5:57 pm #48159Ernest Marcinko
KeymasterI would love to help, but custom coding is far beyond our support, I hope you understand that.
The issue seems to be this line:
'add_args' => array_map( 'urlencode', $query_args ),I don’t know what that does, but maybe removing the urlencode will do the trick, I don’t know:
'add_args' => $query_args ,You can probably even remove that line, apparently it’s happens with all search plugins too.
May 15, 2024 at 6:14 pm #48160profudeistorie
ParticipantIs work. Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.