_construct function for PHP dunce

Home Forums Legacy Support Support queries How-to & Troubleshooting _construct function for PHP dunce

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #66550
    birdybirdbird
    Participant
    Hellooo.  I'm not really a PHP person but I'm attempting to set up a custom media block style (the existing ones don't show the course start date for some reason?). The instructions (https://wplms.io/support/knowledge-base/creating-custom-featured-block-style/) say to add some code to the _construct function, but there isn't one already in the customizer php file and I can't figure out how to write it. Any help is very appreciated! Thanks    
    #66620
    Anshuman Sahu
    Keymaster
    Well featured block with start date is already available in the post grid and carousel . Please select the featured style block that has date written on it . check screenshot : http://prntscr.com/c9tmlf
    #66987
    birdybirdbird
    Participant
    Hi Alex This shows the date the post was created rather than the course start date, plus I'd like to make some other alterations. Thanks
    #66999
    birdybirdbird
    Participant
    In fact it doesn't show at all. Have selected the option you suggest and this is what I get http://writershq.co.uk/online-courses/
    #67241
    Anshuman Sahu
    Keymaster
    You observation seems to be wrong .It shows the start date there if it is not passed the current date . check : http://prntscr.com/cb19ny
    #68118
    birdybirdbird
    Participant
    Hi Alex But it's not showing on my instance, even though I have selected the media block you mention. See screenshot. What could be causing the problem? Thanks    
    #68234
    H.K. Latiyan
    Participant
    Please make sure you have selected the course block mentioned by Alex to show the start date, and also make sure the start date is set for the course (future dates only and not the present or previous dates). Also try clearing the cache before checking. If still the issue persists then please share the site url and the admin credentials with us (in a private reply) to check the issue on your website.
    #68353
    birdybirdbird
    Participant
    This reply has been marked as private.
    #68500
    H.K. Latiyan
    Participant
    Thanks for sharing the credentials, I checked your site and found out that your theme and plugins are not updated to the latest versions.

    Latest Versions

    • WPLMS v 2.2.2
    • Vibe Course Module v 2.2.2
    • Vibe Custom Types v 2.2.2
    • Vibe Shortcodes v 2.2.2
    • WPLMS Dashboard v 2.2.2
    • WPLMS Assignment v 2.2.2
    • WPLMS Front End v 2.2.2
    • WPLMS EventOn v 2.2.2
     
    Please update your theme and plugins to latest versions and then check after clearing the cache. Also update your wordpress. Let me know if this helps.
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘_construct function for PHP dunce’ is closed to new replies.