• Resolved thewildpaw

    (@thewildpaw)


    Hi there,
    Firstly, really like this plugin, surprised not more people are using it. Wasn’t really sure where to post this, as it’s technically not a support question.

    I had an issue where the post author was using ‘post_author’ id of 0 which doesn’t exist. This may be intentional, but just thought it looked tidier having an author and an image in the post.

    I have resolved this by creating a new user with id of 2, and then doing a SQL update on the database to change anything with author of 0 to 2. This worked fine, I just need to automate this on the database.

    However, I would assume most wordpress sites have an author id of 1 at least, so could this be defaulted, or allowed to be changed in the settings?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thank you for the suggestion. That’s not really something I had considered before, but it’s true that it looks tidier to actually have an author assigned to each event.

    I’ve just released version 2.3.1 of the plugin. I’ve opted to look for the oldest admin user on the site, and use it as the author of the events created by the plugin.

    If you’d rather keep using that new user you’ve just created, I’ve added a filter you can use to force the plugin to use a specific user as author. To use the filter, you’d have to add the following code snippet somewhere on your site, like in a functionality plugin or in your theme’s functions.php file:

    
    add_filter( 'traktivity_event_author', function() { return [ '2' ]; } );
    

    I hope this helps!

    Thread Starter thewildpaw

    (@thewildpaw)

    Thanks for your super fast response, especially considering some your other work is far more popular and takes more of your time.

    I have installed the updated version, and added that line to my functions.php, so will wait and see what happens later when I mark some more stuff as watched on trakt.tv

    Thanks again, keep up the good work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Author on TV Posts’ is closed to new replies.