WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Featured Posts Grid] Creating multiple copies of same plugin (7 posts)

  1. amphibious
    Member
    Posted 2 years ago #

    I am currently using the Featured Posts Grid plugin on my site, but it's configuration options leave a lot to be desired, and I wish to duplicate it to have various setups at different locations on my site.

    What's the best way to go about doing this?

    I'm not a PHP coder, but I figure if I were to edit all the code and replace the term "fpg" with something like "fpg1" then that would do it, but is there an easier way?

    More in depth...

    Featured Posts Grid has one configuration screen where you determine the number of rows and columns of items. All my pages have three columns. One page has 5 rows, but another page only needs 2 rows, causing the page to have 3 rows worth of white space at the bottom.

    What I wish to do is have five copies of Featured Posts Grid, one for each instance where I am currently using the plugin.

    (I've already emailed the plugin author to see if he could add this feature, any suggestions of plugins that do something similar would be appreciated, I haven't been able to find any.)

  2. amphibious
    Member
    Posted 2 years ago #

    I added a number to the end of all references of fpg, featured-posts-grid, etc, in the PHP and CSS and it works fine. Utterly inelegant solution, but it works for now.

  3. Chaser324
    Member
    Posted 2 years ago #

    I'm glad you found a solution, and thanks for the feedback. Multiple style/display setups in different locations is definitely something that I'd like to add. However, it's low on the list of things to do, and I have a limited amount of time to dedicate to all of these little side projects like this.

  4. Scotm
    Member
    Posted 2 years ago #

    @amphibious

    I have the same issue. Can you share how you limited the number via php/css?

    Thx

  5. amphibious
    Member
    Posted 2 years ago #

    @Chaser324: thanks for reading the post. Hope you get some time to implement the feature sometime in the next few years. ;)

    @Scotm: It's a really ugly solution. I downloaded the plugin, and then rename the directory with a 2 at the end. Then opened up all the PHP files and all the CSS files and just added a 2 at the end of every instance of FPG, featured-posts-grid, etc. (I can't remember all the different things I had to append the number to). Then I zipped up each directory and installed it via the normal plugin install process. I have setups to display 1x2, 1x3, 2x3, 3x3, 4x3, 5x3, and 6x3. Fortunately, I won't need 7x3 for quite some time. The problem with this is I have seven instances of the plugin running simultaneously. I can't say that it makes the site slower, it's just not ideal.

    This actually prompted me to build a theme from the ground up and implement something similar via the loop, so I'm in the very long and painful process of figuring that out.

    I did these modifications with the 1.6 version of the code. I'd be happy to put them on my site if you want a copy for yourself.

  6. ferdhardt
    Member
    Posted 2 years ago #

    I did these modifications with the 1.6 version of the code. I'd be happy to put them on my site if you want a copy for yourself.

    love to see that!
    Im having some problems with the config page of the second fpg

  7. kyle_baggott
    Member
    Posted 2 years ago #

    If you have a link to your multiple instance setups that would be great, having real trouble creating more than one

Topic Closed

This topic has been closed to new replies.

About this Topic