Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 82367

youtube short code somewhere within plugin?

$
0
0

Replies: 0

Hi quys,

first of all let me thank you for this plugin!..

i’m struggling to solve an issue for a couple of days without any luck :/

So i would kindly request for your input..

i’m using Nextscripts plugin to publish to facebook.
Auto post scheduler is working perfectly. To be able to use Nextscripts with recycled posts i used the following code changes described at:
https://wordpress.org/support/topic/using-auto-post-scheduler-with-snap-social-network-auto-poster/

The code is actually working but the problem is that the new code causes the following behaviour:
Post that do have youtube code with iframe (example <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/xxxxx” frameborder=”0″ allowfullscreen></iframe>) they change after autopost to [youtube https://www.youtube.com/embed/xxxxx%5D and cannot play.

This does not happen if the initial post includes youtube code by using only video’s url (for example https://www.youtube.com/embed/xxxxx).

Tried to simulate the whole process that is implied by autopost new code (https://wordpress.org/support/topic/using-auto-post-scheduler-with-snap-social-network-auto-poster/)
what i did was to manually publish a draft article or change the status of an already publised post to draft and then published it again. The youtube code with iframe remained intact.

Only when auto-post schedules and publishes the post there is a problem.

How these 3 new lines caused all this trouble? Is it possible for auto-post to somehow calls something that alters video’s code when youtube iframe exists?

These are the 3 new lines added to auto-post-scheduler
$update[‘post_status’] = ‘draft
wp_update_post($update);
do_action(‘draft_to_publish’, $id

Thanks,
Stelios


Viewing all articles
Browse latest Browse all 82367

Trending Articles