Depending from where you want to access the page, post or custom post-type data, it might not always be available that easily.
WordPress provides an option to get your data through the page-slug.
The function is called get_page_by_path.
1 |
$page = get_page_by_path( basename ( $_SERVER['REQUEST_URI']),OBJECT, "your-post-type" ); |
As I said before, Learning Management is really taking off and I get many client requests to do some kind of integration or custom solution for them.
What is a LMS?
A Learning Management System (LMS) is a software application for the administration, documentation, tracking, reporting, and delivery of educational courses, training programs, or learning and development programs.
It is used by organizations to manage and deliver their internal training programs and can be used by schools and universities for managing online courses as well. An LMS typically includes features such as creating and delivering content, user management, tracking progress, assessments, reporting, and collaboration tools.
In one of my latest articles I started listing solutions for WordPress, WordPress and the LMS universe.
But those solutions might not always be the best fit for your project. Many of them actually try too hard to be everything. The amount of cross linked functionality is getting insane and increases the point of failure.
In some cases a trimmed down solid solution might be the better way to go. SaaS (Software as a Service), part of the cloud trend, is providing more and more options, this includes the LMS arena.
A SaaS solution refers to software that is delivered to users over the internet, typically on a subscription basis. Instead of installing and running the software locally on individual computers or servers, users access it through a web browser or a thin client. The service provider manages the infrastructure, maintenance, and upgrades of the software, allowing users to benefit from the latest features and improvements without having to manage the underlying technology themselves.
Stop worrying about the software and concentrate on your content again. The SaaS provider takes care of functionality, support, updates and delivery.
This is nothing new, solutions like TalentLMS or Litmos LMS offer this for some time now.
TalentLMS is a cloud-based Learning Management System (LMS) designed for small to mid-sized businesses and organizations. It offers features such as creating and delivering online courses, tracking progress and performance, reporting, and integrations with other tools like Google Drive, Dropbox, and Zapier. TalentLMS also includes mobile learning capabilities, allowing users to access courses on their smartphones or tablets. The platform is easy to use and offers a range of customization options for branding and layout. It also includes features for creating and managing certificates and badges for learners upon completion of courses.
Litmos is a cloud-based Learning Management System (LMS) designed for businesses and organizations of all sizes. It offers features such as creating and delivering online courses, tracking progress and performance, reporting, and integrations with other tools like Salesforce, Marketo, and Google Drive. Litmos also includes mobile learning capabilities, allowing users to access courses on their smartphones or tablets. The platform is easy to use and offers a range of customization options for branding and layout. It also includes features for creating and managing certificates and badges for learners upon completion of courses. Additionally, Litmos offers features for automating course assignments, tracking compliance with regulatory requirements, and providing personalized learning experiences for individual learners based on their performance and progress.
Modern SaaS solutions provide Public APIs, that allow you to seamlessly integrate them with your current solution. So in case of a LMS, that part of your project could be handled by the SaaS provider, while e-commerce, social and other content areas remain under your full control.
We are looking at a very crowded LMS market, but always nice to have options :)
CodePress Admin Columns allows you to manage and organize columns, for posts, users, comments and media lists in the WordPress admin panel.
This little tweak allows you to add sorting to your columns. Add and adjust depending on the columns you have setup.
1 2 3 4 5 6 7 8 9 |
function admin_columns_users_registered_column_sortable( $columns ) { $custom = array( "column-user_registered" => "user_registered", ); return wp_parse_args( $custom, $columns ); } add_filter( "manage_users_sortable_columns", "admin_columns_users_registered_column_sortable" ); |
Anyone using WPLMS 1.9x should wait and not update to 2.0x yet.
Not all bugs are fixed and I see many users having problems, just by reading the support forums and the comments over on Envato.
I have a vanilla test environment of WPLMS 1.9x on my testserver and i had no problems until 2.0 came along.
The last customtypes plugin update today killed the setup completely. Many of the old child themes break or have parts broken. Fresh sample data is not working either. Sadly some of my customers already did an update themselves …. perfect ! Will be a long weekend.
I am doing a complete reset of my test environment and waiting for the next update :)
Rant: This theme / plugin is getting too bloated in many areas. Two many unknown variables, due to the huge amount of dependencies …
Author: Andrew Angell
Favic-o-matic is a favicon generator, that transforms your png design into favicons and the required html to include them.
Favic-o-meter makes sure that every browser shows your favicon perfectly :)
In the past 2 years, the e-Learning market has been exploding. Online Learning Management Systems (LMS) have become very popular, to build e-learning platforms.
They not only offer text based content, quizzes, assignment management, course evaluation, social features, but also allow the integration of video, audio and other linked content. Many support SCORM (Sharable Content Object Reference Model), allowing the exchange of learning content and results.
Over the past few years, I have been helping clients to build or transform their e-learning platforms. Sometimes its better to build a customized LMS solution from scratch :), than tweak or customize an offered solution. It all depends on the features you want to see integrated and on the budget available ;)
In this article I want to share current solutions offered for WordPress.
I will divide them into themes and plugins for now. In the future I plan do some feature comparison as well :
These are standalone plugins, that provide LMS functionality and integrate into your WordPress themes. Ease of integration and options differ.
These themes mostly dependent on one of the plugins above or offer only a simple subset of LMS functionality.
Integrated solutions, that are supposed to offer a tight integration of WordPress, theme and its own plugins.
Really neat solution, that allows you to build a quick viewport based layout, without relying on the still buggy CSS units.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
<head> <!-- Add vUnit.js to the head to avoid FOUC --> <script src="path/to/vunit.js"></script> <!-- Instantiate vUnit.js passing a CSSMap with properties you want to play with --> <script> new vUnit({ CSSMap: { // The selector (VUnit will create rules ranging from .selector1 to .selector100) '.vh_height': { // The CSS property (any CSS property that accepts px as units) property: 'height', // What to base the value on (vh, vw, vmin or vmax) reference: 'vh' }, // Wanted to have a font-size based on the viewport width? You got it. '.vw_font-size': { property: 'font-size', reference: 'vw' }, // vmin and vmax can be used as well. '.vmin_margin-top': { property: 'margin-top', reference: 'vmin' } }, onResize: function() { console.log('A screen resize just happened, yo.'); } }).init(); // call the public init() method </script> </head> <body> <h1 class="vw_font-size15">This title font-size is 15% of the viewport width.</h1> <p class="vh_height50">This p's height is 50% of the viewport height.</p> <p class="vmin_margin-top5">This p has some margin-top<p> </body> |
Also works nicely in combination with Visual Composer for WordPress :)
„WP-CLI is a set of command-line tools for managing WordPress installations“
1 2 3 4 5 6 7 8 9 10 |
Available commands: wp blog create|delete wp cache add|decr|delete|flush|get|incr|replace|set|type wp comment create|delete|trash|untrash|spam|unspam|approve|unapprove|count|status|last wp core download|config|is-installed|install|install-network|version|update|update-db wp db create|drop|reset|optimize|repair|connect|cli|query|export|import wp eval-file ... See 'wp help <command>' for more information on a specific command. |