selmoK
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 |
---|---|---|---|---|---|
[wpv-post-link] not showing
Started by: selmoK in: Toolset Professional Support |
2 | 2 | 6 years, 7 months ago | ||
View Search listing all results
Started by: selmoK in: Toolset Professional Support |
2 | 12 | 6 years, 8 months ago | ||
Translate “Use my location” message on cred form
Started by: selmoK
in: Toolset Professional Support
Problem: I need to translate "Use my location" message on cred form, when i use an address field with google map. I don´t use WPML. Can i use a code in functions.php to translate Solution: You can translate the "Use my location" message with WordPress built-in filter hook gettext, for example, add below codes into your theme file functions.php: add_filter( 'gettext', 'my_text_func', 20, 3 ); /** * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function my_text_func( $translated_text, $text, $domain ) { if($text == 'Use my location' && $domain = 'toolset-maps'){ $translated_text = "Use my location in your language"; } return $translated_text; } Relevant Documentation: https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext |
2 | 3 | 6 years, 8 months ago | ||
Image update after CRED editing
Started by: selmoK
in: Toolset Professional Support
Problem: Flush post cache, after submit CRED form for editing post. Solution: Workaround from the client: Put wp_cache_flush() in the cred_form_validate action hook and it worked, clearing the cache before submitting the new images. Relevant Documentation: https://developer.wordpress.org/reference/functions/wp_cache_flush/ |
2 | 6 | 6 years, 9 months ago | ||
I need help with limitting posts from a user role
Started by: selmoK
in: Toolset Professional Support
Problem: Create a custom function to count user's posts, and use it in the [wpv-conditional] shortcode. Solution: 1) Edit the file functions.php, add below codes: function my_u_post_content() { $user_post_count = count( get_posts( array( 'post_type' => 'anuncio-gratuito', 'author' => get_current_user_id(), ) ) ); return $user_post_count; } 2) Dashboard-> Toolset-> Settings-> Conteúdo de front-end 3) Create a page to test the result: [wpv-conditional if="( my_u_post_content() lt '20' )" ] <label> test </label> [/wpv-conditional] [wpv-conditional if="( my_u_post_content() gt '20')" ] <label> test 2</label> [/wpv-conditional] Relevant Documentation: |
2 | 9 | 6 years, 9 months ago | ||
Using slider
Started by: selmoK
in: Toolset Professional Support
Problem: Solution: I managed to create a flexslider plugin that should be able to help your. Download and install the plugin in the link below. https://drive.google.com/file/d/1CFU2_oBqe9PJBks8cT1VqMND8-ytDdVE/view?usp=sharing Then create a content template for your post and add the following. <div class="flexslider"> <ul class="slides"> [wpv-for-each field="wpcf-image_1"] <li>[types field="image_1" size="medium" align="none" resize="pad" padding_color="#FFF"][/types]</li> [/wpv-for-each] </ul> </div> After doing this then you will need to add the script for it to work. Add this to the js section of the content template. jQuery(window).load(function() { jQuery('.flexslider').flexslider(); }); Relevant Documentation: |
2 | 4 | 6 years, 9 months ago | ||
Fill a CRED email field with an email from another post
Started by: selmoK in: Toolset Professional Support |
2 | 3 | 6 years, 9 months ago | ||
Login form not appearing
Started by: selmoK
in: Toolset Professional Support
Problem: I am trying to implement a login form on my site. I followed the link When i configured the login form layout to show for not logged users it doesn´t appear. I tried also create a page with the only shortcode in it: [wpv-login-form] and, when i show the page even if i am disconnected, it stays blank. Solution: It might be a cache problem, I did below modification in your website: a) Open above URL, b) click button "Edit with Layouts" c) Edit the "Visual Editor cell", did not change anything, click tab "HTML", save Then logout, and test the page in front-end: Relevant Documentation: |
2 | 11 | 6 years, 10 months ago | ||
User group field is not showing
Started by: selmoK in: Toolset Professional Support |
2 | 3 | 6 years, 10 months ago | ||
Force unique field on CRED post
Started by: selmoK
in: Toolset Professional Support
Problem: When user submits the CRED form for creating post, I need the field wpcf-anuncio-gratuito to be unique. Solution: You can get the field "my_field" value submitted by user: Then use it to query database, check if there is any existed item If there is existed item, return an error Relevant Documentation: |
2 | 10 | 6 years, 10 months ago | ||
Include text field from a select box field on Relevanssi search
Started by: selmoK
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 6 years, 10 months ago |