Hi, Shane is on vacation so I've been asked to look into this ticket. I hope that's okay with you.
1) I created a search and search results page with a content template to show the results...when I first go to the page it shows all the records even when I do a reset, how to I fix that?
You need to use custom code to filter the search results. I can show you generally how to do this, and you can customize this to fit your search criteria:
add_filter( 'wpv_filter_query', 'drop_empty_search_query', 10, 3 );
function drop_empty_search_query( $query_args, $view_settings, $view_id ) {
$ids = array(1, 2, 3, 4);
if (in_array($view_id, $ids)){
if ( !isset($_GET['wpv_post_search']) && !isset($_GET['your-url-param-1']) && !isset($_GET['your-url-param-2']) ) {
$query_args['post__in'] = array(0);
}
}
return $query_args;
}
Replace 1, 2, 3, 4 with a comma-separated list of View IDs where you want to apply this filter. Next, look at the long line that tests all the different URL parameters:
if ( !isset($_GET['wpv_post_search']) && !isset($_GET['your-url-param-1']) && !isset($_GET['your-url-param-2']) ) {
The first parameter, wpv_post_search, should be included if you use the "Text Search" filter in your View. The following terms should be modified to match any URL parameters you want to include in your View. Add or remove as needed, using the format
&& !isset($_GET['your-url-param-n'])
I can view the page and see the custom post field content however no styling is showing. For instance I can bold a field title however changing the background does not display.
I see what you mean here. Let's try to narrow down the issue a bit and find out exactly where the conflict is occurring.
- Please temporarily disable all plugins except Toolset Types, Toolset Views, and Beaver Builder Pro, then activate a default theme like Twenty Seventeen. Test again to see if styles are showing up as expected. If yes, then please activate your theme and other plugins one by one until the conflict is revealed.