Skip Navigation

[Resolved] Request help using view (user)

This thread is resolved. Here is a description of the problem and solution.

Problem:

Setup custom search form in user view.

Solution:

Toolset user view does not support custom search form, you can setup some HTML links to pass the URL parameters, for example:

https://toolset.com/forums/topic/request-help-using-view-user/#post-2079037

Relevant Documentation:

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by chelhwanS 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2078833
20.png
27.png
26.png
25.png
24.png
23.png
22.png
21.png

Tell us what you are trying to do?
I want to make a list as below.

Name e-mail mobile-phone county mem-rol ( choice(select))

Seo sohae21@naver.com 010-2573-3483 GyeyangGu edit (choice mem-rol )
Kim dragonpa@naver.com 010-1234-2345 McholGu edit (choice mem-rol )

The screen above must be filtered by the user's "county" field value.
To get the value of the county field of the user, I made the function as below and put it in the function of the theme.

function accept_county_name(){
$current_user = wp_get_current_user();
$county_name = $current_user->county;
return
}

And I made it by selecting user in View.

image ....
********
Ask for help
1. "Edit (choice mem-roll)" could not be inserted because the field was selected when creating the view.
I can think of a few ways, but it's not the way I want it to be.
The best way is to select mem-roll (field type is also select). Please teach me the way.

2. I made a page and entered View block.
User views are not visible

image

What is the link to your site?
hidden link

#2079037

Hello,

1) Toolset user view does not support custom search form, you can setup some HTML links to pass the URL parameters, for example:

<a href="?country_name=usa">USA</a>

2) Blocks editor does not support user view, but you will can use "Fields and Text" block to insert the user view's shortcode:
https://toolset.com/block-item/fields-and-text/

#2079955

I'll think about it with a post type. Thank you!