Problem:
I am attempting to create a search function that allows users to choose start/end dates to filter posts in a view by. It would be preferred if they can choose from a calendar popup, but this can also just be entered in via text. Solution:
Follow the steps outlined in this ticket to create a date filter: https://toolset.com/forums/topic/need-an-exposed-filter-for-a-date-range/
Toolset blocks do not work on the Kadence single post block.
Solution:
Use Kadence the other way around, Ass the single post template with Toolset, but you are able to use all Kadence blocks if you want the layout stuff from there.
Problem:
The customer's theme has a custom field for Taglines, he went to Post Field Control and set it to "manage with types" but the content will not appear on the front-end: Solution:
The option Manage with types will allow you to use that custom field inside a Toolset custom field group, but it won't automatically link it to the custom field available inside the custom theme or plugin.
Upon further review, that fields was serialized by the theme and placed inside a 'lp_listingpro_options' option. I had to use custom code to retrieve this field. I added it to a shortcode and registered the shortcode within Toolset settings, then the field managed by the theme became available to be used in the front end as well. The shortcode was this:
function my_shortcode_callback( $atts ){
// Get the tagline from post_meta
$myvals = maybe_unserialize(get_post_meta($atts['post_id'], 'lp_listingpro_options'));
return $myvals[0]["tagline_text"];
}
add_shortcode( 'tagline_text', 'my_shortcode_callback' );