Thanks - but I need a little more info to get this to work.
I would like to try the CSS solution - but I'm not sure where to put the info.
I went into the view I'm using (ID#1452) and put tried putting this in the CSS:
div[id^="wpv-view-layout-1452"]{display:inline;}
Then in the loop of the view, I put this:
<div><!-- wpv-loop-start -->
<wpv-loop>([types field='rehearsal-start-date' style='text' format='M j'][/types]-</wpv-loop>
<!-- wpv-loop-end --></div>
This view is being called from another view - and when I run the two views, this info still comes on a separate line. Should I have put the CSS code in the higher level view instead?
I also tried the PHP solution and added this code to my functions.php:
// to allow a nested view to display inline instead of with a line break first
add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 );
function prefix_clean_view_output( $out, $id ) {
if (in_array($view_id, array(1452, 1446, 1445, 1444) ) ) { //set your View ID's here}
$start = strpos( $out, '<!-- wpv-loop-start -->' );
if (
$start !== false
&& strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false
) {
$start = $start + strlen( '<!-- wpv-loop-start -->' );
$out = substr( $out , $start );
$end = strrpos( $out, '<!-- wpv-loop-end -->' );
$out = substr( $out, 0, $end );
}
}
return $out;
}
This also had absolutely no effect on the output of my view.
I'm sure I'm doing something wrong - can you help me figure out what I'm doing wrong?
Thanks!
Elise