CRED plugin allows you to build forms that create child posts and set parents for these posts, supporting the parent-child relationship functionality from Types plugin.
When you ask for help or report issues, make sure to tell us the structure of your content and the relationship between the content types.
Viewing 15 topics - 691 through 705 (of 725 total)
For one of my content templates called "Single Career Fairs" I would like to change the header text "Booths Registered" to "Companies Registered" but cannot find the location of where the html is located. I thought it would be in the html for this template, but this header does not seem to be located there. Here is the code for the template:
Solution:
In case it is a compatibility problem, please try this:
deactivate other plugins and switch to wordpress default theme, and test again
Problem: I would like to create a Content Template for CPT A, and I would like to show all the related child CPT B posts inside that Content Template.
Solution: Use a parent / child relationship to link CPT A and CPT B. Create a View of CPT B, filtered by post relationship, where the parent post is set by the current page. Insert this View into a Content Template assigned to CPT A.
1) Edit the page "Registrazione NCC", section "Post Group", choose option as :
No Post Group selected.
2) Dashboard-> Toolset-> Access Control-> CRED form
in section "CRED Users Frontend Access",
find "Create Custom User with CRED Form "Registrazione NCC"", enable option for guest user.
Problem: I would like to make the post parent field and featured image field required in my CRED form.
Solution: The parent post CRED field shortcode will accept a required='true' attribute like this:
[cred_field field='_wpcf_belongs_slug_id' value='' select_text='--- not set ---' class='form-control' output='bootstrap' required='true']
The featured image shortcode will not accept a required='true' attribute, so the only way to require a featured image is to use custom code. The CRED API cred_form_validate can be used to make the featured image required. Add this code to your child theme's functions.php file:
I'm trying to get the events to auto-expire and remove themselves from the locations page using CRED.
Unfortunately, I can't get the post type Events to auto expire. If I set the expiration date on the event, it changes itself to a draft, but still displays on the front end. I can only get it to expire if I set it to auto-expire in the Intermediary post type, but that would require finding every event-location combination and setting each one to expire individually.
Is there any way to get one post type to expire from another when they're in a many-to-many relationship?
Solution:
There isn't such a built-in feature within CRED that:
get one post type to expire from another when they're in a many-to-many relationship
According to our document: https://toolset.com/documentation/user-guides/automatic-post-expiration/
If you setup the "auto-expire" in the posts of Intermediary post type, CRED plugin will only change the post status of posts of Intermediary post type, it can not change the status of of other posts.
For the problem you mentioned above:
If I set the expiration date on the event, it changes itself to a draft, but still displays on the front end
You can create a view list "event" posts, filter by post status = "publish", then it should not output posts in "draft" status.
see our document: https://toolset.com/documentation/user-guides/filtering-views-query-by-post-status/
I want to know if I can filter my site according to users location ?
by making user submit a form contain his country , city and use these fields in content templates and filtering views automatically no manually ?
as I need to make a real estate website contain many cities and each city contain many posts
if user enter the site , I need him to select his location and the whole site show the content related to his location
and save these entries as cookies for his browser
Link to a page where the issue can be seen:
Is this possible using Toolset with Toolset Cred , Toolset Maps & Toolset views
Solution:
I assume you are going to achieve this:
Provide a test input box for user inputting address text, submit the form, then locate the address in the google map, and filter the results by distance range.
If it is, this is built-in feature of the latest version of Toolset Map plugin, see the document:
They enter the location and a distance radius within which to display markers. If your site is using HTTPS protocol, visitors can also use their own location as the center of the search.