WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Post Type: about ping service and feed stuff (2 posts)

  1. 800A
    Member
    Posted 3 years ago #

    Hi,

    i'm using custom_post_type and all is ok. The only problem is that, in my case, i use it like normal blog updates so i need to get good seo for that.

    The problem is that when i publish my custom_post_type, all pings to service list are not performed. I solved this problem whit this code:

    function my_custom_pings($post_id){
    	wp_schedule_single_event(time(), 'do_pings', array($post_id));
    }
    add_action('publish_movies', 'my_custom_pings');

    But miss something...
    I used this hack to add custom post in main query, but i have notice that my main feed, after that i publish a news custom post, is not updated. It updates only when i post a wp native post type.

    I use WP Super cache, but i disabled cache for feed, so the problem is not related whit any plugin installed.

    Somebody know how to flush feed and add it via "publish_{custom_post}" hook?

  2. 800A
    Member
    Posted 3 years ago #

    It' a bug related whit get_lastpostmodified() and get_lastpostdate() functions.

    I found this ticket:
    http://core.trac.wordpress.org/ticket/14922

    bug fixed in the next 3.1 relase...

Topic Closed

This topic has been closed to new replies.

About this Topic