WordPress.org

Ready to get started?Download WordPress

Forums

WP-Instaroll
Use Caption as post title (7 posts)

  1. mattijsknol
    Member
    Posted 1 year ago #

    I love your plug-in! Very useful and it does what i needs to do!

    Is there any way to use the "Caption" from Instagram as the post title? Currently all posts will automatically have the standard title, unless changing it manually. I wouldn't botter if "Title" and "Post content" would be the same. Even better would be if the Caption would be the post title, and the content would be empty!

    Would very much appreciate your help.

    Mattijs

    http://wordpress.org/extend/plugins/wp-instaroll/

  2. nicktomkinson
    Member
    Posted 1 year ago #

    I have recently made these exact changes in my installation of the Instaroll plugin.

    On line 382 of \instagram\instagram.php simply change:

    'post_title' => $title_placeholder,

    to

    'post_title' => $insta_caption,

    On line 380 of \instagram\instagram.php simply change:

    'post_content' => $insta_caption,

    to

    'post_content' => '',

    I found that when using $insta_caption as the post title a <br /> was being appended to the end. To resolve this you must remove the <br /> from line 100 in \instagram\ajax_panel.php

    i.e. Change:

    print('<td class="insta_description">'.$element->caption->text.'<br />&nbsp;</td>');

    to

    print('<td class="insta_description">'.$element->caption->text.'</td>');

  3. mayabi
    Member
    Posted 1 year ago #

    THANK YOU @nicktomkinson

    That's exactly what i needed!

  4. nicktomkinson
    Member
    Posted 1 year ago #

    Cool

  5. herewegostere0
    Member
    Posted 1 year ago #

    Nice one! Thank you!

    Been trying to change the post author in the same way, i.e. change:

    'post_author' => 0,

    to

    'post_author' => $insta_author_username,

    Unfortunately it's not working. Any ideas or clues why? Been trying to get this done for days...

    Question to the plugin authors: Any hint on when the next update is coming? If this is part of the next update I could stop wasting my time and wait patiently instead :) Thanks for this awesome plugin anyway! It has helped me a lot!

  6. nicktomkinson
    Member
    Posted 1 year ago #

    I don't know sorry, I use a different Instagram plugin now.

  7. mattijsknol
    Member
    Posted 1 year ago #

    Thanks @ nicktomkinson ! This just works as I needed!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags