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 /> </td>');
to
print('<td class="insta_description">'.$element->caption->text.'</td>');
THANK YOU @nicktomkinson
That’s exactly what i needed!
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!
I don’t know sorry, I use a different Instagram plugin now.
Thanks @ nicktomkinson ! This just works as I needed!