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

URL and TAGS

$
0
0

Replies: 0

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); // caption

Change

$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

Tags
Sonuç


Viewing all articles
Browse latest Browse all 59525

Trending Articles