Skip Navigation

[Resolved] display title on archive pages

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1211432

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 ??

#1211508

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.

#1211776

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 ...

#1212623
Screen Shot 2019-03-11 at 9.53.25 AM.png

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.