WordPress.org

Forums

Live Blogging
[resolved] Auto-assign live blog from CPTs by other plugins (3 posts)

  1. Daniel J. Lewis
    Member
    Posted 1 year ago #

    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/

  2. Vidyut
    Member
    Posted 1 year ago #

    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.

  3. Daniel J. Lewis
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Live Blogging
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.