Frontend User Dashboard
To utilize the user dashboard first configure the global settings as you like from wp-dashboard→User Frontend→Settings→Dashboard.
The Dashboard page has all global settings for user dashboards for your site. To learn about configuring this page, read this documentation.
Configuring Frontend User Dashboards
A user can see all his posts in his WPUF user dashboard.
- Create a page, e.g. Dashboard.
- To use single post type, insert this shortcode in the body of the page
- To allow multiple post types insert this shortcode:
[wpuf_dashboard post_type="post_type_name, custom_post_type_name"].
Note: Alongside with existing previous attributes you can pass any attributes which accept WP_Query (https://developer.wordpress.org/reference/classes/wp_query/) add this link for WP_Query except for attributes which accept multiple values i.e author__in, category__in which named used ‘__ ’. this shortcode accept author_in & category__in where you can pass username & category name in comma separated value. For example[wpuf_dashboard category=‘on’ orderby=‘date’ order=‘desc’ post_type=‘post’ author__in=‘test_expiry,another_author’ category__in=‘small shirts,shirts,new term,abcd’].
Customize Dashboard with Attributes
Now admin can customize the dashboard according to his needs by using some newly added attributes like ‘form_id' , ‘category' , ‘featured_image' , ‘meta' or ‘excerpt' .
Admin can show only the posts of their preferred form by adding the form id’s inside [wpuf_dashboard] shortcode. As example, then we can show only the posts of certain forms with id 101, 102 then admin can use the shortcode as
[wpuf_dashboard form_id="101"]. This shortcode will output default posts of WPUF Forms that contain id=101.
If you want to show custom posts of a specific form, then you have to use post_type attribute along with the form id. Example:
[wpuf_dashboard form_id="99" post_type="product"]
Meta keys can be shown as
[wpuf_dashboard meta="meta_key1, meta_key2"].
Category of the post can be shown as
[wpuf_dashboard category="on"]. Featured images can be shown by
[wpuf_dashboard featured_image="on"]. Excerpts can be shown as
Payment column attribute on Dashboard
The Payment attribute on Dashboard will be by default turned on. To turn the Payment column off, add the following shortcode to your Dashboard page:
[wpuf_dashboard payment_column="off"]. And to turn it on again, use the following shortcode:
You can use this shortcode for any custom post type like events, products, etc. in the following way:
[wpuf_dashboard post_type=“event” payment_column="on"]
Frontend View Settings
To configure how many posts will be displayed in a page, you can configure the settings at
Settings→Dashboard→ Posts per page. There are other settings also for dashboard.
- You can show the user bio in dashboard
- Show the count of posts.
- Show featured image and set the size to display.
This completes the configuration.