I've created a view for the sidebar that displays the information of a custom field in all blog posts (custom field name: keyword-for-dynamic-field). And if that is empty, it should display the taxonomy. And is working fine.
However, there is one issue. It also displays on the homepage, when it shouldn't. So, at the moment it is populating the field on the homepage, based on the last blog post published.
How can I keep the information being displayed (as now is) on the blog posts, but excluded it from the home page. For the homepage I just want a general text to display. For example, on the homepage I just want it to say "Book your place for your next trip" (with a link).
Well - you can try the following conditional shortcode and add your desired content:
Navigate to: Toolset → Settings page and click the Front-end Content tab.
There, add your function name is_front_page to the Functions inside conditional evaluations section.
[wpv-conditional if="( is_front_page() eq 1 )" ]
<h1> This is HOME page. </h1>
[/wpv-conditional]
[wpv-conditional if="( is_front_page() ne 1 )" ]
<h1> This is NOT HOME page. </h1>
[/wpv-conditional]