w internecie znalazłem ciekawą wtyczkę, która dodaje pod każdym wpisem w RSS tekst, która przeszkada osobom kopiującym moje artykuły. A wygląda to tak: http://swiatiphone.com/feed/
Chciałbym edytować poniższą wtyczkę w taki sposób, aby pod wszystkimi wpisami w RSS wyświetlała mi box reklamowy z AdTaily. Czy ktoś mógłby mi powiedzieć jak to zrobić lub podsunąć gotowe rozwiązanie? Dla was to zapewne 5 minut roboty, a dla mnie wielki problem.
Prawie bym zapomniał. Kod AdTaily wygląda tak:
A wtyczki tak:
<?php /* Plugin Name: RSS License Version: 0.1 Plugin URI: <a href="http://room-303.com/blog/" target="_blank">http://room-303.com/blog/</a> Description: Allows one to include the wpLicense copyright in blog feeds. Author: Patryk Zawadzki Author URI: <a href="http://room-303.com/blog/" target="_blank">http://room-303.com/blog/</a> */ function append_rss_license($contents) { if (!is_feed()) return $contents; $license_uri = get_option('cc_content_license_uri'); $license_name = get_option('cc_content_license'); $license_attribName = get_option('cc_content_attributionName'); $license_attribURL = get_option('cc_content_attributionURL'); $result = '<a href="'.get_permalink().'">'.get_the_title().'</a> ©'; if($license_attribURL) { $result .= ' <a href="'.$license_attribURL.'" rel="cc:attributionURL">'; } if($license_attribName) $result .= $license_attribName; else { $result .= $license_attribURL; } if($license_attribURL) { $result .= '</a>'; } $result .= ', <a rel="license" href="'.$license_uri.'">'.$license_name.'</a>.'; return $contents . '<p><small>'.$result.'</small></p>'; } add_filter('the_content', 'append_rss_license'); //add_filter('the_excerpt_rss', 'append_rss_license');
Z góry dziękuje wam za odpowiedz oraz pomoc.