• LearnPress Lesson Template Changes : Part 2

    , ,

    This is the new and updated version of my article here: LearnPress Lesson Template Changes I got to admit, it is quite simpler in terms of files than before.Turns out it is now possible to edit with only CSS and make our Header and Footer show in current implementation of LearnPress plugin. WordPress Version : 5.7.2Theme Twenty Twenty-One : 1.3LeranPress Version : 4.0.7 Quick Start Here, is the fast answer you need and keep on moving. Contain the width Now if the lesson content area is full width, and you want it contained, like the header and footer, we need   …Read More

  • Yith WooCommerce Subcriptions : List all the active subscribers


    In order to do a custom listing of active subscriptions in Yith WooCommerce Subscription plugin, here is the code you can write:Assuming your WordPress database table prefix is the default: “wp_” Hell, if you want to move one step further and list only active members, then you can throw “AND” condition in the query itself, like below; You can do the pagination as well now. Final Note: There is a file /plugins/yith-woocommerce-subscription/includes/admin/class.ywsbs-subscriptions-list-table.php, look or find the function prepare_items() , this is where I derived above query from.

  • Could not insert post into the database

    It was actually funny when it happened to me. I just can’t seem to find the way to insert post in WordPress via coding. I looked into Google, here and there, support forums, you know all the desperations. Not knowing anything about it, I then went to see the log(debug.log) file of WordPress and found this: Well folks, the answer was right there, the post_type name should not exceed 20 chars in length 🙂

  • LearnPress Lesson Template Changes

    , ,

    This is an old article and my not work in the newer version. Please see the updated article here: Many of you including me, must at least once have come upon this cumbersome task – To change the LearPress Lesson Template.Where are my headers, menus and Footers?And as a loyal Google users, we’ve search adding every related words, search every forums to this task only to be frustrated and exhausted.No help from lord Google And so I decided to take it all by myself. And finally, was able change this stubborn LearnPress lesson template. So here below the procedure I   …Read More

  • Adminer running out of memory upon sql import – Fatal error

    flywheel adminer running out of memory upon sql import - fatal error

    This is the exact copy from the flywheel forum community. Link to the original page is below. This is a great answer. Enjoy Adminer running out of memory upon sql import – Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 174873888 bytes) in /etc/scripts/local-adminer.php on line 92 In this case I would recommend using MySQL CLI (command line) to get this job done. Here’s what you can do: Move the SQL file into the site’s /app directory (untar it if it’s tar/gzipped) Right-click on the site in Local’s sidebar and go to “Open Site SSH” Enter mysql -u root   …Read More

  • Add Reset button to your Gravity Forms

    With a little bit of code you can add Reset button to your Gravity Forms.