First, I would like to thank you for a great plugin.
I would like to display Tweets as quotes like
https://twitter.com/oveucsj/status/245973837815091200
but the plugin recognizes the text as a link.
Is there a work around?
First, I would like to thank you for a great plugin.
I would like to display Tweets as quotes like
https://twitter.com/oveucsj/status/245973837815091200
but the plugin recognizes the text as a link.
Is there a work around?
Yup, but that's nothing to do with the quotes collection plugin.
Just put a link to a specific tweet on it's own line in your post and it should display automatically.
For more info, look here: http://codex.wordpress.org/Embeds
Alternatively, if you want them to be displayed in the widget, the quote contents would need to be filtered for such embeds. That is something which actually could be implemented in the plugin. Nice idea ;-)
Hi jrf, thanks for the answer.
I know that I can embed a tweet in a post - but I would like to do it in the plugin, so that the tweet would rotate with the other quotes.
I'm not using the widget - i'm using the shortcode because I would like to have it in the center of my frontpage.
You can see it here : itigymnasiet.dk
Basically there are two way this can be done.
Either the author implement tweet embedding in the plugin or the author could add a filter hook which users could then use to add tweet embedding themselves.
Implementing both would actually be the best option ;-)
I would suggest that the function quotescollection_txtfmt() should be adjusted to something along the lines of the below (BEWARE: untested code).
File: quotes-collection.php
Replace line 205 - 209:
foreach($quotedata as $key => $value){
$value = make_clickable($value);
$value = wptexturize(str_replace(array("\r\n", "\r", "\n"), '', nl2br(trim($value))));
$quotedata[$key] = $value;
}
with:
foreach($quotedata as $key => $value){
if( true === preg_match( '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i', $value ) ) {
global $wpembed;
$value = $wpembed->autoembed( $value );
}
$value = make_clickable($value);
$value = wptexturize(str_replace(array("\r\n", "\r", "\n"), '', nl2br(trim($value))));
$value = apply_filters( 'quotecollection-filterquotetext', $value );
$quotedata[$key] = $value;
}
Hope this helps and it would be very nice if this would be implemented into the plugin.
Smile,
Juliette
Hello Juliette
Thankyou for your time and effort :-)
I hope your code can be implemented somehow in the plugin.
Kind regards, Lars.
You must log in to post.