Noriko Sugiura
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Set post expiration only after the post changes to published
Started by: Noriko Sugiura in: Toolset Professional Support |
2 | 7 | 4 years, 3 months ago | ||
Show different post status for different users
Started by: Noriko Sugiura
in: Toolset Professional Support
Problem: 1) Use two different views in the same page with two different filters, one filtering for post status = published, and the other one for post status=pending. The problem I'm facing is that when I update a view's filter, it also updates the other view's filter on the same page. 2) Use the save view but dynamically change the post status filtering based on whether the user is admin or not. Problem is that I don't know how to do this. Another solution I guess would be I filter both for Published and Pending status. Then in the view's logic, I put a condition to show the right post status to the right set of users. That should do, though my preference would have been two separate views. Solution: Regarding the option(2), this will require custom code, hooked to the wpv_filter_query filter and modifying the query arguments "post_status" accordingly. The 3rd option is not a good solution. Because the view query will always return all the posts, instead of returning just what is needed. And this can have a performance hit on the view/page. Relevant Documentation: |
2 | 3 | 4 years, 3 months ago | ||
Update Permalink for Post Created with CRED Form
Started by: Noriko Sugiura
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 7 years, 2 months ago | ||
Call a Function When Post Expires
Started by: Noriko Sugiura in: Toolset Professional Support |
2 | 3 | 7 years, 2 months ago | ||
cred_post_expiration_custom_actions
Started by: Noriko Sugiura in: Toolset Professional Support |
2 | 10 | 7 years, 2 months ago | ||
Credit System Based on Classifieds Reference Site
Started by: Noriko Sugiura
in: Toolset Professional Support
Problem: 2) Would you please suggest which php files in the Classifieds site relate to the Ad Package, so that I can start doing some code customizations? 3) I need to add a back-end function that based on some triggers (i.e. post expiration or user submitting a form), it either increases or reduces the amount of credits in one of the user's existing Ad Packages. Solution: 2. The best approach is to quickly create a Test reference site on http://discover-wp.com/site-types/classifieds-layouts/ and explore the page’s backend of how we have set things up OR you can import reference site for testing. 3. For this you would need to create custom function or shortcode or something that will modify credits. You will most likely be using CRED API and Views API to achieve this. Relevant Documentation: |
2 | 8 | 7 years, 3 months ago | ||
Email Notification to a User ID Specified in a Generic Field
Started by: Noriko Sugiura in: Toolset Professional Support |
2 | 3 | 7 years, 4 months ago | ||
Set Post Expiration Programmatically
Started by: Noriko Sugiura in: Toolset Professional Support |
2 | 3 | 7 years, 4 months ago | ||
Display Parent Fields on Child Post’s Front-End
Started by: Noriko Sugiura
in: Toolset Professional Support
Problem: Solution: For example: 2) Display the content template like this: Relevant Documentation: |
2 | 4 | 7 years, 4 months ago | ||
CRED: Add Child Content and Update Parent Attribute
Started by: Noriko Sugiura
in: Toolset Professional Support
Problem: Solution: /* Update Parent Field on Child Post creation */ add_action('cred_save_data', 'update_parent_field_on_child_creation',10,2); function update_parent_field_on_child_creation($post_id, $form_data) { // if a specific form if ( $form_data['id'] == 2448 ) { $parent_id = get_post_meta($post_id, '_wpcf_belongs_property_id', true); // property = your parent post type name update_post_meta($parent_id, 'wpcf-status', 'closed'); // wpcf-status = your field name // closed = your field new value } } |
2 | 3 | 7 years, 4 months ago | ||
No Auto-Paragraph on WordPress Posts
Started by: Noriko Sugiura in: Toolset Professional Support |
1 | 2 | 7 years, 4 months ago | ||
How to Change Office Address?
Started by: Noriko Sugiura
in: Toolset Professional Support
Problem: I would like to add an address field to the Office post type in the real estate reference site, and use that address to plot the office on a map. Solution: Relevant Documentation: https://toolset.com/documentation/user-guides/display-on-google-maps/ |
2 | 7 | 7 years, 4 months ago |