Diamond MultiSite Widgets
Feature Request - more than one widget instance for posts ... (3 posts)

  1. chuckingit
    Posted 4 years ago #

    Hi - i was loving this plugin until i realized that i can only create one instance of the Recent Posts thereby not being able to have multiple widgets e.g., would have like to have had one in sidebar showing site-x, and another widget recent posts in footer showing site-y ... but as it is now, this plugin will only allow one instance ...

    cheers - chuck scott

  2. Samuel Coskey
    Posted 4 years ago #

    I second this! It is such a flexible widget, it would be great to use it in two different ways.

  3. redlegoreng
    Posted 3 years ago #

    Hi ! Same request here, it would be great !

    In the meantime, for those who aren't afraid of getting dirty, here's a workaround (making a clone of the plugin) :

    1) Choose a beautiful name for the widget's clone (i chose "diamund")
    2) Duplicate the whole "diamond_multisite_widgets" folder
    3) Replace all files names by replacing "diamond" with "diamund" including the main folder
    4) Using a powerful text editor (as Textmate on mac), replace the string "diamond" with the name you chose (i.e. "diamund") in all the files of the widget folder
    5) Using the same powerful text editor, replace
    update_option(' with update_option('diamund_
    get_option(' with get_option('diamund_
    6) In the functions.php file, for every function (3 times), add this before : `if(!function_exists('FUNCTION_NAME')){
    and this after : }
    (Of course, replace FUNCTION_NAME by the actual name of the function)
    7) It may be possible that you need to do the same in your original widget file, so copy your function.php file in that folder too.
    8) Activate your new widget. It works exactly as the real one and should not interfere.

    9) Repeat the process using another name as many times as you need...

    Note : I'm a wordpress newbie, so i can't tell but it could possibly be very bad to do this at home

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Diamond MultiSite Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic