Title: Dynamically generate column structure using PHP
Last modified: April 19, 2023

---

# Dynamically generate column structure using PHP

 *  [vidhya1113](https://wordpress.org/support/users/vidhya1113/)
 * (@vidhya1113)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/urgent-dynamically-generate-column-structure-using-php/)
 * Hi,
 * I want to show set of online classes on each day and the structure of it is as
   shown in the screenshot
 * [https://www.awesomescreenshot.com/image/39089578?key=e266855030e71b3308c6217fa5cb793b](https://www.awesomescreenshot.com/image/39089578?key=e266855030e71b3308c6217fa5cb793b)
    1. There will be so many online classes per day. (Assume there is going to be 100
       classes.)
 * 2. Currently, the time (shown in the above screenshot) is generated through shortcode
   which takes CDT time and converts it to user’s timezone based.
 * 3. Also the LIVE button shown was made visible if the current time of user falls
   within 1 hr rage of the class. A shortcode was used to make the LIVE button visible.
   In the beginning LIVE button for all classes was set to visibility:hidden.
 * 4. Other information like – Title of the class, image, class description is all
   static.
 *  Now, I have to parse through all the online classes and find out which are currently
   LIVE. I have to list them on top of the page. May be I have to create a section
   for that and list out all the online classes.
 * I am seeking help on how to achieve this, and also I would like to know if there
   is a way to generate the online classes dynamically, instead of keeping them 
   static like it is now.
 * Any help in this regard is super highly appreciable.
    -  This topic was modified 3 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Removed "URGENT" as that's wrong for a volunteer forum
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Furgent-dynamically-generate-column-structure-using-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/urgent-dynamically-generate-column-structure-using-php/#post-16669159)
 * This is going to depend heavily on the code that is powering your online classes.
 * It seems you’re using the **Tutor LMS plugin**. So I’ll recommend you post in
   the Tutor LMS plugin’s own support forum so its author and user community can
   help you.
 * [https://wordpress.org/support/plugin/tutor/](https://wordpress.org/support/plugin/tutor/)
 * Good luck!
 *  Thread Starter [vidhya1113](https://wordpress.org/support/users/vidhya1113/)
 * (@vidhya1113)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/urgent-dynamically-generate-column-structure-using-php/#post-16669206)
 * Hi George,
 * Thank you for your reply. Even thought we are using Tutor LMS plugin, there is
   no feature of Tutor LMS that is being used for this particular page. The information
   given is static. We just want to process the time part dynamically and also change
   the current online class information that is statically placed to something programmatically(
   dynamically) generated one.
 * **I guess I stated the issue very clearly, and pointing to something that’s not
   at all related is very naïve.** Thank you for taking your time though. I would
   rather hear ideas, solutions from other wordpress pros present here.
    -  This reply was modified 3 years, 1 month ago by [vidhya1113](https://wordpress.org/support/users/vidhya1113/).
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [3 years, 1 month ago](https://wordpress.org/support/topic/urgent-dynamically-generate-column-structure-using-php/#post-16669480)
 * > **I guess I stated the issue very clearly, and pointing to something that’s
   > not at all related is very naïve.** Thank you for taking your time though. 
   > I would rather hear ideas, solutions from other wordpress pros present here.
 * [@vidhya1113](https://wordpress.org/support/users/vidhya1113/) I’m a volunteer
   forum moderator on this site. I just want to take a moment and explain something.
   Hopefully clearly.
 * That reply to another volunteer was wildly inappropriate and I’ve flagged your
   account for moderation as a result.
 * Read the forum guidelines. Please actually do that.
 * [https://wordpress.org/support/guidelines/](https://wordpress.org/support/guidelines/)
 * I’ve removed “URGENT” from your topic title. These are 100% volunteer support
   forums and there is no such thing as “URGENT” here.
 * If the answers from volunteers attempting to assist you out of the goodness of
   their hearts is not working for you, feel free to take your query to another 
   site.
 * If you choose to remain here then please act in a civil way and refrain from 
   treating other volunteers like yourself poorly.
    -  This reply was modified 3 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Grammar and formatting
 *  Thread Starter [vidhya1113](https://wordpress.org/support/users/vidhya1113/)
 * (@vidhya1113)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/urgent-dynamically-generate-column-structure-using-php/#post-16670592)
 * [@jdembowski](https://wordpress.org/support/users/jdembowski/) , I want to sincerely
   apologize for the statement. Everything you have highlighted from my post is 
   completely regrettable. I cant retake what was already posted but let me apologize
   to [@gappiah](https://wordpress.org/support/users/gappiah/) and the forum for
   this post. I will go through the guidelines and ensure I follow it. Thank you
   for post and highlighting this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Dynamically generate column structure using PHP’ is closed to new replies.

## Tags

 * [Parsing](https://wordpress.org/support/topic-tag/parsing/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [vidhya1113](https://wordpress.org/support/users/vidhya1113/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/urgent-dynamically-generate-column-structure-using-php/#post-16670592)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
