Disable CrossWalk Usage

By default, WP-AppKit includes CrossWalk Cordova plugin, leading to a heavy final application (+20MB). To disable CrossWalk and reduce the size of the application:

Warning: this could lead to…

Read More

Create a custom screen attached to a custom template

To create a custom app screen that is rendered using a custom template:

This creates a new screen in the app that can be reached at #my-custom-screen-fragment and is…

Read More

2 categories for one component

As explained here Post List components queries can be customized using the wpak_posts_list_query_args filter hook. Here’s how to define a component (slug my-component-slug) that gets posts from 2 categories (my-first-category-slug and my-second-category-slug)…

Read More

Customize Login Expiration Time

By default, the user connection is automatically maintained 3 days. After that time, user has to reconnect. You can use the wpak_auth_connection_expiration_time hook to customize this expiration time in a .php file…

Read More

Customize Post List Component’s Queries

Post List components query can be customized using the wpak_posts_list_query_args filter hook. Internally, WP-AppKit Post List components’ queries are WP_Query objects. So basically, all customization that can be done on WP_Query objects…

Read More

Custom Templates Based On Category Or Post Type

Category To define a custom template (archive-my-category.html) for a given category (slug my-category):

Custom Post Type To define a custom single template (single-my-post-type.html) for a given post type (post…

Read More

Custom Template Data

Each template has a pre-defined set of variables passed to it by core. You can also pass your own custom params (variables or functions) to templates by using the template-args…

Read More

Custom Post Data

Post Metadata To add a meta (stored as a WordPress post meta, here a meta called pdf) to your post data (in a variable called pdf_url):

Then, on app side, to…

Read More

Having questions?

FAQ | Tutorials | Documentation

Or

Contact Us