Posted By

raselkhan on 03/18/13


Tagged

php


Versions (?)

WP_Plugin


 / Published in: PHP
 

URL: www.codex.wordpress.com/User:Raselkhancse

Subscribe Each Content

  1. <?php
  2. /*
  3. Plugin Name: subscribe
  4. Plugin URI:www.codex.wordpress.com/User:Raselkhancse
  5. Description: Plugin Development By Rasel Khan
  6. Version:1.0
  7. Author:Rasel Khan
  8. Author URI:raselkhan.comuv.com
  9.  
  10.  
  11. */
  12. function content_func($content){
  13. echo $content;
  14. if(is_single()){
  15. ?>
  16. <div class="feed">
  17. <h2>Enjoy in this article </h2>
  18. <p>Subscrive <a href="<?php bloginfo('rss2_url') ;?>">Rss Feed</a></p>
  19. </div>
  20.  
  21. <?php }
  22. }
  23. add_filter('the_content', 'content_func');
  24. ?>

Report this snippet  

You need to login to post a comment.