WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Auto-assign live blog from CPTs by other plugins

[Resolved] Auto-assign live blog from CPTs by other plugins

  • I’m using Pressgram to allow a team to upload photos to my WP site and I want to use Live Blogging to display these photos live.

    The problem is that when Pressgram creates the post (and I can make it create a liveblog entry), the post isn’t assigned to a live blog, so it won’t automatically show up.

    How can I make these custom post types automatically be included in a specific live blog? What meta information do I need to add in the post-creation process, and what is that code for it? I’m fine modifying either Pressgram or Live Blogging (Plus) for this.

    http://wordpress.org/plugins/live-blogging/

Viewing 2 replies - 1 through 2 (of 2 total)
  • It should be possible to add a “default” live blog that gets assigned if no specific live blog is selected. Will take coding, but should be simple enough. Alternative may be to get pressgram to send the metadata for associated liveblog.

    I did eventually get this to work by figuring out what metadata Pressgram needed to add.

    For me, that meant adding the following code into Pressgram.

    wp_set_post_terms( $post['ID'], '9368', 'liveblog');

    Where “9368” is the ID of my liveblog page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Auto-assign live blog from CPTs by other plugins’ is closed to new replies.