dont show tag in search results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support dont show tag in search results

This topic contains 14 replies, has 2 voices, and was last updated by profudeistorie profudeistorie 4 days, 12 hours ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #48082
    profudeistorie
    profudeistorie
    Participant

    Hi

    I dont want to show tag in results search. How make this?

    #48083
    profudeistorie
    profudeistorie
    Participant

    And 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?!

    #48088
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48089
    profudeistorie
    profudeistorie
    Participant

    Hi

    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?

    #48097
    profudeistorie
    profudeistorie
    Participant

    Response?

    – 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?

    #48098
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    It is possibly an incorrect configuration.

    Can you please add temporary back-end access so I can verify that?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48099
    profudeistorie
    profudeistorie
    Participant
    You cannot access this content.
    #48101
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thanks!

    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48102
    profudeistorie
    profudeistorie
    Participant

    Perfect! Thanks so much! GJ!

    #48103
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48138
    profudeistorie
    profudeistorie
    Participant

    Hi

    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&current_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
    499

    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
    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;

    #48152
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    The error is originated from the theme, it refers to this file: /var/www/clients/client1/web5/web/wp-content/themes/odiseea/functions.php

    I 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48156
    profudeistorie
    profudeistorie
    Participant

    Hi

    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.

    #48159
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48160
    profudeistorie
    profudeistorie
    Participant

    Is work. Thank you!

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.