Hi there
I have a couple of different custom post types in my site – for job vacancies and tenders respectively. I need to display just the titles of of each post in a particular post type in the the sidebar.
I have done so by using the following:
'vacancies', 'posts_per_page' => 3 ) ); ?>
have_posts() ) : $sidebar_vacancies_loop->the_post(); ?>
- ">
This works well, but I need to display alternate content if there are no vacancies.
- Either by having an alternate li that simply says, ‘No vacancies’
- Or just not displaying the entire section if there are none.
Any help would be appreciated.
Thanks in advance.