Skip Navigation

[Resolved] Taxonomy Title not working

This thread is resolved. Here is a description of the problem and solution.

Problem:
If I change [wpv-taxonomy-link] to [wpv-taxonomy-title] it doesn't display anything in taxonomy view.

Solution:
Update the conditional output like this:

[wpv-conditional if="( '[wpv-taxonomy-title]' ne '' )"], [wpv-taxonomy-title][/wpv-conditional]
This support ticket is created 7 years, 1 month 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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 2 voices.

Last updated by randallH-3 7 years, 1 month ago.

Assisted by: Noman.

Author
Posts
#575594
Screen Shot 2017-10-03 at 4.03.47 PM.png
Screen Shot 2017-10-03 at 4.03.02 PM.png
[wpv-conditional if="( '[wpv-found-count]' ne '0' )"]
[wpv-layout-start]   
 <div id="tax_listOrg" class="divTaxOrg">
   [wpv-conditional if="( '[wpv-found-count]' gt '1' )"]
        <span style="font-weight:bold;">Organizations: </span>[/wpv-conditional] 
     [wpv-conditional if="( '[wpv-found-count]' eq '1' )"]
        <span style="font-weight:bold;">Organization: </span>[/wpv-conditional]
       
	[wpv-items-found]
	<!-- wpv-loop-start -->
    <wpv-loop>
         [wpv-item index=1]
[wpv-taxonomy-link]
      [wpv-item index=other]
          <span class="lft">, </span>[wpv-taxonomy-link]


        </wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
   
	[wpv-no-items-found]
		[wpml-string context="wpv-views"][/wpml-string]
	[/wpv-no-items-found]
</div>
    
[wpv-layout-end]
[/wpv-conditional]

If I change [wpv-taxonomy-link] to [wpv-taxonomy-title] it doesn't display anything.

#575669

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Randall,

Thank you for contacting Toolset support. These 2 shortcodes are meant to be used in a Taxonomy View:
[wpv-taxonomy-link] - [wpv-taxonomy-title]

If you are using WordPress Archive View then this is the shortcode you would need to use:

 [wpv-taxonomy-archive info="name"] 

Attributes for this shortcode can be seen here:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-archive

Please let us know if you are using some other type of View. Thank you

#575955

Hi,

I am using a taxonomy view.

Tried your shortcode, not working.

#575965

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

Okay, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and check the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please provide link to [Taxonomy View] Edit Screen and [Page] Edit Screen where you have inserted this View.

Thank you

#576481

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for providing login info. I have checked your setup, I can see there are lots of conditions being applied in the View and above this shortcode which is causing the issue.

The shortcode itself is working good, its the conditional setup causing the trouble. I will investigate this further and get back to you with my findings.

Thank you

#576551

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I have updated conditional output in your View and now it shows Taxonomy term title just fine:
hidden link

This is the updated View code:

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	
	<div id="tax_listOrg" class="divTaxOrg">
      	[wpv-conditional if="( '[wpv-taxonomy-title]' ne '' )"]
			 <span style="font-weight:bold;">Organization: </span> 
     	[/wpv-conditional]
		<wpv-loop>
          [wpv-item index=1]
          	[wpv-conditional if="( '[wpv-taxonomy-title]' ne '' )"]
      			[wpv-taxonomy-title]
          	[/wpv-conditional]
         
          [wpv-item index=other]
          	[wpv-conditional if="( '[wpv-taxonomy-title]' ne '' )"]
      			, [wpv-taxonomy-title]
          	[/wpv-conditional]
		</wpv-loop>
	</div>
	
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
	<div id="tax_listOrg" class="divTaxOrg">
		[wpml-string context="wpv-views"]No items found[/wpml-string]
	</div>
	[/wpv-no-items-found]
[wpv-layout-end]

Your original View code backup:
hidden link

I hope its good now, thank you

#577162

Hi,

How can I remove the space between commas?

Also, why do I need to put conditional statements around the output? It this some kind of bug or something?

#577209

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

1. I can not see the spaces and comma on this page, but to remove space before comma I just deleted the extra space like this:

[wpv-conditional if="( '[wpv-taxonomy-title]' ne '' )"], [wpv-taxonomy-title][/wpv-conditional]

hidden link

2. No this is not bug. The conditions were added in your original View, so I also added it to the new one.

Thank you

#578085

Resolved.