WordPress 接入功能

WordPress (V2)

General settings

First you will add the Feature to your Application.

After what you will see the following configuration page

WordPress URL: This is the WordPress you want to fetch posts & pages from.

Group all queries into a single list: This one is a display option, in WordPress v2 you can build what we call “queries”.

They are collection of posts and/or pages, choosing this option will group all the queries into a single list page like the picture below

Otherwise, when not checked, queries will be displayed like “categories/folders”

Show cover: this option applies only when the queries are not grouped, and will toggle the Cover display on the homepage.

Login / Password: If you want to access posts & pages secured by an account, input your credentials, otherwise leave them blank.

You must create queries in order to display posts.

Query builder

Let’s build our first query, here named “Technology” 

The query builder fetched all available categories & pages from our previously configured WordPress, we selected “Tech” which contains 76 posts for our query.

And a page query (here Contact)

Design

In the design section you can upload backgrounds for the feature.

Settings

The settings section offer two options, the first is the card design alternative

The second is related to the cache lifetime, to improve loading times and reduce load on the WordPress server, all queries are cached, however the in-app function “Pull to refresh” automatically rebuilds the cache to fetch fresh content.

Default cache lifetime is set to 1 hour.

And you’re done!