SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Should I be using plugins?

    I'm working on quite a customised Wordpress site and what I need to do is get all images attached to a post and create a sideshow from it. I have achieved this without using any plugins. So what I have done is put a but of code in functions.php to loop thought a post and build an array of image attachments. I then call it on my template file and then use a jquery slideshow to display it.

    Am I ok to leave it like that or is it best practice to convert it to a plugin? Never made a plugin before which is why I am apprehensive about it.

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,156
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    Putting the code in the theme's function.php file is fine. With the only problem being a change of themes will remove the code. If you want it to work with other themes then a plugin is the way to go.

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2003
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Another advantage to using plugins is that you can put different modifications in different plugins, allowing you to selectively activate / deactivate features more easily.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •