URL and TAGS
-
To contribute, I have added a code to the attachment to URL and TAG posting.
/wp-content/plugins/auto-post-to-instagram/wp2instagram.php
$caption = get_the_title($ID); // captionChange
$tags = get_the_tags($ID); $tagged = ''; if ( $tags ) { foreach ( $tags as $tag ) { $tagged[] = rawurlencode($tag->name); } $tagged = implode('#',$tagged); } $caption = get_the_title($ID)."\n".home_url('?p='.$ID)."\n#".$tagged; // caption

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘URL and TAGS’ is closed to new replies.