I am trying to display archive title/archive term.
Link to a page where the issue can be seen:
hidden link
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
<h1>[wpv-post-taxonomy type="video-category" format="name"]</h1>
<div class="row ">
<div class="col-sm-3">[wpv-post-body view_template="loop-item-in-archive-for-video-categories"]</div>
[wpv-item index=other]
<div class="col-sm-3">[wpv-post-body view_template="loop-item-in-archive-for-video-categories"]</div>
[wpv-item index=4]
<div class="col-sm-3">[wpv-post-body view_template="loop-item-in-archive-for-video-categories"]</div>
</div>
[wpv-item index=pad]
<div class="col-sm-3"></div>
[wpv-item index=pad-last]
<div class="col-sm-3"></div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
I would like to show the title ONCE on top of the page.
I used the code: <h1>[wpv-post-taxonomy type="video-category" format="name"]</h1>
If I display the code before [wpv-item index=1] the the title appears 8 times.... Where do i place this code correctly?
I woould also like to delete the title automaticly generated by wordpress. On my example page its the incorrect title: "INSTRUCTIE AANMELDEN VAN CO2 BEDIENINGSSENSOR 15RF ORCON" i would like to delete....
Can you help me further ??
Hi, try adding it before the wpv-items-found shortcode, like this:
[wpv-layout-start]
<h1>[wpv-post-taxonomy type="video-category" format="name"]</h1>
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
Some themes offer theme options that will disable the title of the page, but not all themes offer this option. If your theme does not offer the ability to disable the archive title, you can try hiding it with CSS. Add this to your WordPress Archive loop's CSS panel:
.archive.tax-video-category h1 {
display:none;
}
Then add the class "show" to your h1 element, like this:
<h1 class="show">[wpv-post-taxonomy type="video-category" format="name"]</h1>
Your theme enqueues Bootstrap, which includes the "show" class. That will force the element to appear.
Thank you for your reply. I have succesfully removed the title.
but the first code is not working for me
[wpv-layout-start]
<h1 class="show">[wpv-post-taxonomy type="video-category" format="name"]</h1>
[wpv-items-found]
<h1 class="show">[wpv-post-taxonomy type="video-category" format="name"]</h1>
<!-- wpv-loop-start -->
<h1 class="show">[wpv-post-taxonomy type="video-category" format="name"]</h1>
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
<div class="row ">
No titles are showing ...
I see, the tags are empty. I assume this is because "/video-category/orcon/" is a taxonomy archive. If you use the wpv-post-taxonomy shortcode outside the loop, it may not work correctly because there is no post context. The better shortcode to use outside the loop is wpv-archive-title: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-archive-title
Try that and let me know if the problem is not resolved.