This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Feed search problem

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25083
    Bertnick69Bertnick69
    Participant

    Hi,
    I have an Ajax search plugin for searching the entire site, but when I search on some feeds the result is always a page of error.
    How can I solve this problem?–

    —-I have already contacted the wp rss aggregator plugin developers and they answered this—
    Hi Nicola,

    There seems to be a bug in the Ajax Search Plugin that causes it to display result page that are meant to be visible only on the admin back end side.

    For example, when I search a term using the field provided and then simply click in the field , I get the below results:
    IMAGE1

    As you can see, the feed sources you’ve set up on your site under RSS Aggregator > Feed Sources are listed here. This also explains why searching ‘riscaldamento’ yields the below result, which is in fact a link to https://papertel.eu/?post_type=wprss_feed_item&p=909. This link is meant to be accessed only internally, and not for your site’s visitors, thus yielding a 404 Not Found error page.
    IMAGE2

    You will need to get in touch with the developers of Ajax Search Pro with these observations and request them to provide a resolution.

    #25094
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #25096
    Bertnick69Bertnick69
    Participant

    You cannot access this content.

    #25097
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    I see what was wrong there, the developer didn’t mention, that the feed link URLs are not the default permalinks, but stored in a custom field. I have applied a custom code into the functions.php file in your theme, based on this knowledge base.

    For future reference, this is the code applied:

    add_filter( 'asp_results', 'asp_custom_link_meta_results', 10, 1 );
    function asp_custom_link_meta_results( $results ) {
        // Change this variable to whatever meta key you are using
        $key = 'wprss_item_permalink';
    
        // Parse through each result item
        foreach ($results as $k=>$v) {
            if ( function_exists('get_field') )
                $new_url = get_field( $key, $v->id, true ); // ACF support
            else
                $new_url = get_post_meta( $v->id, $key, true );
    
            // Change only, if the meta is specified
            if ( !empty($new_url) ) {
                $results[$k]->link = $new_url;
            }
        }
    
        return $results;
    }
    #25098
    Bertnick69Bertnick69
    Participant

    You cannot access this content.

    #25099
    Ernest MarcinkoErnest Marcinko
    Keymaster

    If I search feed diritto, and click on “Feed Diritto” it gives me the same URL as the back-end, see my previous post:
    – Back-end: https://i.imgur.com/0zVX9z1.png
    – Search: https://i.imgur.com/PrJwv3w.png
    That seems to me the correct URL, as it is the same as on the wordpress dashboard.

    #25103
    Bertnick69Bertnick69
    Participant

    In truth the slash http://www.papertel.eu/wprss_feed_categories/feed-economia/.
    I think the problem is generated by the slash after papertel.eu/, but I can’t modify it. From the back end I can only edit ‘feed-diritto’ and not /wprss_feed_categories/

    #25104
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    That cannot be changed in WordPress, that is automatically added. If it does not work, you probably have a misconfigured .htaccess rule or mod_rewrite rule in the apache server configuration.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.