|
I have a key for tipstersclub and the plugin in Bo wp says the key is expir?
Started by: Retegan George
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 6 months ago
Beda
|
|
Single author template / Profile page
Started by: amarildow
in: Toolset Professional Support
Quick solution available
Problem: I would like to automatically create a profile page for each new User who signs up with CRED.
Solution: You can use the cred_save_data API to automatically create a post after registration. Create a "Profile" post type, and add the following custom code to functions.php:
add_action('cred_save_data', 'ts_new_user_profile_action',10,2);
function ts_new_user_profile_action($user_id, $form_data)
{
// if a specific form
if ($form_data['id']==1234)
{
// Create post object
$my_post = array(
'post_title' => $_POST['first_name'] . ' ' . $_POST['last_name'],
'post_content' => '',
'post_status' => 'publish',
'post_author' => $user_id,
'post_type' => 'profile'
);
// Insert the post into the database
wp_insert_post( $my_post );
}
}
Replace 1234 with the numeric ID of the CRED registration form, replace "profile" with the slug of the post type you want to create, and modify the post_title if you want the title of the post to be anything other than the new User's name.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
https://developer.wordpress.org/reference/functions/wp_insert_post/
|
|
2 |
11 |
6 years, 6 months ago
amarildow
|
|
I want to add users to a membership plan
Started by: Joan
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 7 months ago
Christian Cox
|
|
jobsite – membership
Started by: ericW-5
in: Toolset Professional Support
|
|
2 |
6 |
6 years, 7 months ago
Luo Yang
|
|
Membership site or something similar to that
Started by: ThorstenS967
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 7 months ago
Ricardo Alday
|
|
New user emails not sending (even through SMTP)
Started by: Monique Bolland
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 8 months ago
Nigel
|
|
Repeating Fields
Started by: davoodD-2
in: Toolset Professional Support
|
|
2 |
17 |
6 years, 8 months ago
Beda
|
|
Using conditional logic
Started by: jackO
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 8 months ago
Luo Yang
|
|
How to organize gallery for multipurpose (and external) usage
Started by: Ljuba
in: Toolset Professional Support
Quick solution available
Problem: I would like to use CRED to allow my site Users to upload multiple images, and associate those images with CPTs. Some of those CPTs are child posts, some are parents, some are grandparents. What is the best way to associate the images with all levels of the CPT hierarchy?
Solution: It depends on your site's requirements. There are several things to consider.
- It is easier to create custom search filters using custom fields attached to the same post type shown in the View.
- However, it is not possible to use repeating fields in child posts in the current stable version of Types. The new beta M2M features will address some of this issue.
- Taxonomies can be used to relate the images to multiple CPTs, but they must be managed by your Users.
- Galleries and Carousels in Divi Builder have limited options for filtering the results, and it is not possible to use shortcodes as filters. So Divi cannot access custom fields effectively in the Gallery or Carousel module.
- Elementor ACF Gallery modules may or may not work with Types custom fields. Types custom fields are stored in the postmeta table using the previx "wpcf-".
|
|
2 |
11 |
6 years, 9 months ago
Ljuba
|
|
Job posting site
Started by: ericW-5
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 9 months ago
Shane
|
|
What are the options for displaying different content to different users on the front-end?
Started by: Ljuba
in: Toolset Professional Support
Quick solution available
Problem:
What are the options for displaying different content to different users on the front-end?
Solution:
To display different content on the front-end according to some criteria you essentially have two options.
If the thing being tested relates to the person doing the looking (the user browsing the website is registered and has a certain role because they have paid for a particular membership, for example) then you can use Access to restrict the visibility of whole pages, or to selectively show certain content on a page (as described here: https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/).
If the thing being tested relates to the thing being looked at then you would need to add custom fields to the content being viewed and then use the wpv-conditional shortcodes to test the content of those custom fields and selectively display what is wrapped in the shortcode, as described here: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
|
|
2 |
7 |
6 years, 9 months ago
Ljuba
|
|
Checkboxes or taxonomy
Started by: Ljuba
in: Toolset Professional Support
Quick solution available
Problem:
Is it recommended to use taxonomies (with checkboxes) or checkboxes custom fields?
Solution:
If you intend to filter a View using these checkboxes you should probably use taxonomies rather than a checkboxes custom field, because within WordPress taxonomy filters are more performant that meta query filters (https://tomjn.com/2017/02/27/not-post-meta-bad/).
See the answer below for a more detailed discussion.
|
|
2 |
3 |
6 years, 9 months ago
Ljuba
|
|
Not sure which to use: post fields or user fields
Started by: Bob
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user wanted to know if its better to use User fields or Post Fields.
Solution:
In this case the user was advised to create a profile CPT and allow his users to create a profile on the profile CPT. If you are using a CPT to store the user's profile then its best to use a Post Field. Otherwise you will need to use User Fields.
|
|
2 |
9 |
6 years, 9 months ago
Bob
|
|
Attaching existing site users to custom posts types
Started by: madhuM
in: Toolset Professional Support
Quick solution available
Problem:
How to connect users and posts?
Solution:
There are three ways to connect users to posts.
The simplest and preferred method is to make the users the authors of the posts, thereby using the built-in means of connecting posts to users with no additional overhead.
There may be reasons why that is not possible, the main problem typically being that you can only assign a single author to a post.
A second option would be to create a custom field for post "owner" that stored the ID of the associated user. By making this a repeating field, you could connect multiple users.
The final method would be to make a custom post type for users which stores additional profile info for an individual user (who you make author of the post), and this custom post can then be connected to other post types using Types post relationships.
|
|
2 |
6 |
6 years, 9 months ago
Nigel
|
|
Charging Subscription Fee by the Number of Posts
Started by: chrisG1876
in: Toolset Professional Support
|
|
2 |
4 |
6 years, 10 months ago
Minesh
|