Pay With A Tweet

Get 10% off No Thanks

Tagged: ,

This topic contains 1 reply, has 1 voice, and was last updated by  JasonH 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11208

    JasonH
    Participant

    Activating the Facebook Events Importer was breaking my website feeds. Other users are expressing the same:

    http://wpfbevents.com/support-forum/topic/importer-breaks-rss-feed/

    I fixed this by replacing the code at line 724 in /wp-content/plugins/facebook-events-importer/facebook_events_importer.php:

    function wpfb_feed_request($qv) {
    if (isset($qv[‘feed’]))
    $qv[‘post_type’] = ‘facebook-events’;
    return $qv;
    }
    add_filter(‘request’, ‘wpfb_feed_request’);

    ———————————————————————–

    with this code:

    function wpfb_feed_request($qv) {
    if (isset($qv[‘feed’]))
    $qv[‘post_type’] = get_post_types();
    return $qv;
    }
    add_filter(‘request’, ‘wpfb_feed_request’);

    ———————————————————————–

    If you’re happy with the update please could you update the plugin so the fix will survive future updates. If you’re not happy please could you fix it up for the next release.

    Thank you.

    #11209

    JasonH
    Participant

    FYI you can find the Facebook event feed at:

    http://your-site.com/feed/?post_type=facebook_events

    Replace http://your-site.com with your website URL.

    You can also auto tag the custom post type ‘your_tag’ to remove any unwanted junk in the feed:

    http://your-site.com/feed/?post_type=facebook_events&tag=your_tag

    Replace “your_tag” with the tag you decide to use.

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

You must be logged in to reply to this topic.