• Hi,

    I’m using WP 3.01 and Custom Post Types.

    I’ve included a custom post type in my regular post type feed (the /feed one ), using a snippet I found on the web.

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

    Everything is fine; Custom posts are added in the feed.

    But to make the feed update when I post a new custom post, I need to update (clicking the Update button in the UI) or publish (using the Publish button) a “regular” post (of type “post”).

    No cache (which I suspect first to be the root cause of the problem), nothing special.

    I register my custom post like the following :

    register_post_type('ontheweb', array(
            'labels' => array(    'name' => __('On The Web'),
                                'singular_name' => __('On The Web'),
                                'add_new' =>  __('Add OTW'),
                                'add_new_item' => __('Add New On The Web'),
                                'new_item' => __('New On The Web'),
                                'edit_item' => __('Edit OTW'),
                                'view_item' => __('View OTW'),
                                'search_items' => __('Search OTW'),
                                'not_found' =>  __('No OTW found'),
                                'not_found_in_trash' => __('No OTW found in Trash'),
                                'parent_item_colon' => ''
            ),
            'publicly_queryable' => true,
            'exclude_from_search' => false,
            'public' => true,
            'supports' => array('title', 'editor', 'author', 'thumbnail', 'custom-fields', 'comments')
    
     ));

    Does anyone encounter the same issue or can help me ?

    That’s really annoying.

    Thks
    Lionel

  • The topic ‘RSS Update with custom post’ is closed to new replies.