Skip Navigation

[Resolved] Remove link from wpv-heading name="post-taxonomy"

This support ticket is created 4 years, 7 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.

This topic contains 1 reply, has 1 voice.

Last updated by SteBlood 4 years, 7 months ago.

Author
Posts
#1630879
screenshot1.png

I would like to remove the links to the taxonomy archive pages and just show plain text on my output.

My current code;

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<table width="100%">
		<thead>
			<tr>
				<th>[wpv-heading name="post-link"]Caravan Name[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy"]Caravan Year[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy"]Caravan Make[/wpv-heading]</th>
				<th>[wpv-heading name="types-field-caravan-model"]Caravan Model[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy"]Caravan Length[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy"]Caravan Width[/wpv-heading]</th>
				<th>[wpv-heading name=""]Post status[/wpv-heading]</th>
			</tr>
		</thead>
		<tbody class="wpv-loop js-wpv-loop">
		<wpv-loop>
			<tr>
				[wpv-post-body view_template="loop-item-in-author-caravans"]
			</tr>
		</wpv-loop>
		</tbody>
	</table>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No Caravans found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

I wanted to remove the link from the output page Screenshot 1.

So I edited the code to this;

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<table width="100%">
		<thead>
			<tr>
				<th>[wpv-heading name="post-link"]Caravan Name[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="name"]Caravan Year[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="name"]Caravan Make[/wpv-heading]</th>
				<th>[wpv-heading name="types-field-caravan-model"]Caravan Model[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="name"]Caravan Length[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="name"]Caravan Width[/wpv-heading]</th>
				<th>[wpv-heading name=""]Post status[/wpv-heading]</th>
			</tr>
		</thead>
		<tbody class="wpv-loop js-wpv-loop">
		<wpv-loop>
			<tr>
				[wpv-post-body view_template="loop-item-in-author-caravans"]
			</tr>
		</wpv-loop>
		</tbody>
	</table>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No Caravans found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

This still didn't work so I edited the code once again;

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<table width="100%">
		<thead>
			<tr>
				<th>[wpv-heading name="post-link"]Caravan Name[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="text" show="name"]Caravan Year[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="text" show="name"]Caravan Make[/wpv-heading]</th>
				<th>[wpv-heading name="types-field-caravan-model"]Caravan Model[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="text" show="name"]Caravan Length[/wpv-heading]</th>
				<th>[wpv-heading name="post-taxonomy" format="text" show="name"]Caravan Width[/wpv-heading]</th>
				<th>[wpv-heading name=""]Post status[/wpv-heading]</th>
			</tr>
		</thead>
		<tbody class="wpv-loop js-wpv-loop">
		<wpv-loop>
			<tr>
				[wpv-post-body view_template="loop-item-in-author-caravans"]
			</tr>
		</wpv-loop>
		</tbody>
	</table>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No Caravans found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

This still hasn't worked.

#1630907
screenshot1.png

To fix this I went into the loop wizard and edited the settings to show just name instead of name + link