• Resolved thatcodemonkey

    (@thatcodemonkey)


    Hi there,
    Hello Matthias,

    Thanks for the great plugin!
    Is it possible to send a specific feed (/feed/?post_type=news) to the hubs?
    Normal posts get pushed thru, no problem. But if I subscribe to a specific feed url like
    mydomain.com/feed/?post_type=xyz the push seems not to work, or very delayed (maybe also pulled by the reader itself).

    Do I need to add a Topic URL somehow?
    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thatcodemonkey

    (@thatcodemonkey)

    I noticed that the <atom:link rel="hub" […]> tag is missing in my custom post type feed xml. Maybe that helps narrowing down the problem?

    Thread Starter thatcodemonkey

    (@thatcodemonkey)

    Update: After some digging I realized, that the action hook 'publish_post' does not fire, when a custom post type is published. One has to use another hook like 'publish_{{custom_post_type}}' to catch the publishing and kick-on the push to the hub.
    In my case I added
    add_action( 'publish_news', array( 'PubSubHubbub_Plugin', 'publish_post' ) );
    to the init() funtion in pubsubhubbub.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Post Type Feed’ is closed to new replies.