Enterprise Shortcode Category: Database
/ Database
query.wp_query
Title
:
query.wp_query
Purpose
:
To fetch the posts.
Syntax
:
[query.wp_query o.exit=d]
{
“post_type”: “notification_tpl”
}
[/query.wp_query]
Input
query.users_builder
Title
:
query.users_builder
Purpose
:
query.users_builder is used to create complex queries for users. It requires additional attributes to
query.get_post
Title
:
query.get_post
Purpose
:
Get post by post_slug and post_type or by passing the post_id
Syntax
:
[query.get_post post_id OR
query.get_term_by
Title
:
query.get_term_by
Purpose
:
To get all the term data from database by term field and data
Syntax
:
[query.get_term_by
query.posts_builder
Title
:
query.posts_builder
Purpose
:
Get posts as per mentioned args
Syntax
:
[query.posts_builder part=start]
{
“posts_per_page”: “”,
“post_type”: “”,
“post_status”: “”,
“order