WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
[resolved] Use SSLP Twice on 1 Website (11 posts)

  1. lothsun
    Member
    Posted 1 year ago #

    What all would I need to change in the code to use this plugin twice on my site? I currently have a band site that I use this plugin for to display the band members and a little about themselves. Now, I would like to use this plugin as an easy way for the main content contributor to add new albums. Right now, our music page that lists all of our albums is hand coded and is hard for the other members to understand how to update. I would love to make it easy for them to update this area so I don't have to be pulled off of other projects to do it for them. I'm wanting to do a layout like this image here. Any and all help is appreciated as I'm still not sure how I'm going to integrate the music player to this plugin.

    http://wordpress.org/extend/plugins/simple-staff-list/

  2. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Hey man, that's going to be a lot of work. But if you're up for it, you should just write your own Custom Post Type (reference link) to handle getting the information. Or you could use a plugin called Advanced Custom Fields that really makes it easy to add formatted content to a page.

  3. lothsun
    Member
    Posted 1 year ago #

    You think it would be easier to write everything from scratch instead of modifying your plugin?

  4. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    I think it would be. Do you need the sorting feature?

  5. lothsun
    Member
    Posted 1 year ago #

    I assume you are referring to the "Order" sub-menu, and I may need that. Not for sure yet. Depends on how they decide they want to display the albums. But I'm sure they will just want them going in the typical order of newest album at top and then getting older as you go down the page. I probably won't need the template area as I'll just hard code it in.

  6. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah, well if you end up need all of the features, you could just duplicate my plugin and go through and change the post type definition, all the function names, and all the custom field names.

    Not terribly easy (or fun), but do-able. haha

  7. lothsun
    Member
    Posted 1 year ago #

    Thanks for the help, I have already done that but for some reason I can't get the loop to display now using the modified code. I am doing a simple port over to just say "band members" instead of "staff members" to make sure i have modified correctly. Pretty much anything that said staff I changed to band. I must have messed up somewhere. :/ haha

  8. lothsun
    Member
    Posted 1 year ago #

    Found my error. In admin-views.php and admin-install-uninstall.php I had the loop named [band_member_loop] and in user-view-show-band-member-list.php I had it as [band_loop].

  9. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Awesome. Glad you got it working!

  10. lothsun
    Member
    Posted 1 year ago #

    Thanks for all the help Brett. I'll let you know when I get done customizing it to work with the albums and layout I want. Then maybe you can take a look at the code and help me improve it if you have time. Thanks again for everything and making a great plugin.

  11. lothsun
    Member
    Posted 10 months ago #

    resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic