• 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.)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter amphibious

    (@amphibious)

    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.

    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.

    @amphibious

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

    Thx

    Thread Starter amphibious

    (@amphibious)

    @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 1×2, 1×3, 2×3, 3×3, 4×3, 5×3, and 6×3. Fortunately, I won’t need 7×3 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.

    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

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Featured Posts Grid] Creating multiple copies of same plugin’ is closed to new replies.