lucyD
Support threads created in the last 30 days: 1
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Can I order results by distance only when the distance filter is used
Started by: lucyD in: Toolset Professional Support |
2 | 3 | 2 weeks, 6 days ago | ||
Display all directory entries on map but list with pagination
Started by: lucyD in: Toolset Professional Support |
2 | 9 | 1 month, 4 weeks ago | ||
Classic Editor plugin causing issues with custom fields
Started by: lucyD
in: Toolset Professional Support
Problem: I am working on a site that has a custom theme with the Classic Editor plugin active. I have created a page that uses the block editor by using a code snippet to enable it. I am adding a view to that page using Toolset Blocks but the custom fields I have created are not available to me when adding a Single Field block. If I disable the Classic Editor plugin all is well but I can't do that because the rest of the theme relies on it. Is there are setting I'm missing or something else you can suggest. Solution: - remove the code snippet |
2 | 3 | 10 months ago | ||
Directory search results by distance
Started by: lucyD in: Toolset Professional Support |
2 | 3 | 1 year ago | ||
Problem with layout of content template using block editor
Started by: lucyD
in: Toolset Professional Support
Problem: I would like to display a full-width template on my custom post type, but it remains boxed in a container. Solution: Disable the Elementor post type template for this custom post type and use the GeneratePress theme options to specify a full-width template. |
2 | 5 | 3 years, 5 months ago | ||
Setting multiple options (all the countries in the world) for a select field
Started by: lucyD in: Toolset Professional Support |
4 | 6 | 5 years, 1 month ago | ||
Restrict number of directory listings per user
Started by: lucyD
in: Toolset Professional Support
Problem: Solution: Here is an example of such code: add_shortcode( 'user-posts', function( $atts = [], $content = null ){ // default is any post type $atts = shortcode_atts( array( 'type' => 'any' ), $atts ); $user_id = get_current_user_id(); $posts = get_posts( array( 'post_type' => $atts['type'], 'post_author' => $user_id, 'numberposts' => -1 ) ); // Return number of published posts return count( $posts ); }); The custom shortcode needs registering at Toolset > Settings > Front-end content to be able to use it for conditions. The shortcode can be used with or without an attribute to specify the post type, like so: [user-posts] // Will output the number of posts of any type published by the current user [user-posts type='thing'] // Will output number of posts of post type 'thing' Relevant Documentation: |
2 | 3 | 5 years, 7 months ago | ||
Adding First name and Last name to a User Form email notification
Started by: lucyD in: Toolset Professional Support |
2 | 3 | 5 years, 9 months ago | ||
Displaying a YouTube video
Started by: lucyD
in: Toolset Professional Support
Problem: I would like to display a YouTube video on my site, but when I try to use the embed shortcodes with the raw custom field value, the video URL appears. Solution: Use the "embedded media" custom field type to display embedded YouTube videos. The embed shortcodes will be applied automatically. Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media |
2 | 3 | 5 years, 9 months ago |