• gyjafar

    (@ghulamjafar2)


    Salam

    I need to show two different timetables for two different locations on the same website.

    Is there any possible workaround to achieve this?

    JazakALLAH

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author mmrs151

    (@mmrs151)

    wassalam,

    you can use a multisite, and link the second location from first site and vice versa.

    Thread Starter gyjafar

    (@ghulamjafar2)

    I did not catch the point. Sorry.

    Can you elaborate a little more please?

    How will the shortcode [dailytable_horizontal] show the timetable from another site?

    Will I have to add some url?

    Plugin Author mmrs151

    (@mmrs151)

    Thread Starter gyjafar

    (@ghulamjafar2)

    Okay. I’ll be using the code below in multisite setup. Right?

    switch_to_blog( 2 );
    [dailytable_horizontal]
    restore_current_blog();

    Plugin Author mmrs151

    (@mmrs151)

    please have a go and Allah will make things easy for you Insha Allah

    Thread Starter gyjafar

    (@ghulamjafar2)

    I have setup multisite.

    I added code snippet in the main blog as below:

    function dailytimetable_hamptons_center() {
    switch_to_blog( 2 );
     
    $output = do_shortcode('[dailytable_horizontal]');
     
    restore_current_blog();
     
    return $output;
    } 
    add_shortcode('display-dailytimetable-hamptons-center','dailytimetable_hamptons_center'); 

    It is pulling Jumuah time and hijri date setting from 2nd blog, but all other data ( timetable, theme, translation ) is being populated from the main blog.

    Plugin Author mmrs151

    (@mmrs151)

    I have not done multisite myself, but I know some brothers of the plugin using multisite to facilitate other masjid in their town.

    I hope they can pick your issue from here.

    Thread Starter gyjafar

    (@ghulamjafar2)

    JazakAllah, I hope so and waiting for the help from any brother.

    Thread Starter gyjafar

    (@ghulamjafar2)

    Brother, It will be helpful if you remember any of the mosque using multisites for multiple instances of time tables. Because this topic is not getting any reply from any brother so far.

    JazakAllah

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Two Timetables for two different locations’ is closed to new replies.