Skip Navigation

[Resolved] Taxonomy with Apostrophe not showing in Views

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

Problem:
Entries with apostrophe on taxonomy doesn't show on views, is this a bug?

<wpv-loop>
        [wpv-taxonomy-title]
    </wpv-loop>

Solution:

The problem you mentioned above is abnormal, in case there is any compatibility problem, please try this:

deactivate other plugins and switch to wordpress default theme, and test again

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-title

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Luo Yang 6 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#606170
Screen Shot 2018-01-15 at 4.36.28 PM.png
Screen Shot 2018-01-15 at 4.36.22 PM.png

Entries with apostrophe on taxonomy doesn't show on views, is this a bug?

#606187

Dear Randall,

Are we talking about Views shortcode [wpv-post-taxonomy]?
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy
I just test it in my localhost, there isn't similar problem, please take a screenshot for the your view, and describe detail steps to duplicate same problem, I need to test and debug it in my localhost, thanks

#607401
<div style="display:inline-block; margin-left:2em;">
  [wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop>
		[wpv-taxonomy-title], [types termmeta="publication-link" target="_blank"][/types]
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"][/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]
</div>

The first view above is inserted in this view:

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
		<wpv-loop>
  
          
            [wpv-conditional if="( $(wpcf-pub-briefing-author) ne '' ) AND ( $(wpcf-pub-link-url) ne '' )"]
       <li class="listPub2">     
      <span style="font-size:10px;">[types field='pub-briefing-author'][/types], "[types field='pub-link-url' target='_blank' title="[types field='pub-link-title'][/types]"][/types]", [wpv-view name="briefing-publication-ii"];</span>
          </li>
          [/wpv-conditional]
          
          [wpv-conditional if="( $(wpcf-pub-briefing-author) eq '' ) AND ( $(wpcf-pub-link-url) ne '' )"]
       <li class="listPub2">     
      <span style="font-size:10px;">"[types field='pub-link-url' target='_blank' title="[types field='pub-link-title'][/types]"][/types]," [wpv-view name="briefing-publication-ii"];</span>
          </li>
          [/wpv-conditional]
          
          <!--For book-->
           [wpv-conditional if="( $(wpcf-pub-briefing-author) ne '' ) AND ( $(wpcf-pub-link-url) eq '' ) AND ( $(wpcf-pub-website-url) eq '' )"]
         <li class="listPub2">     
      <span style="font-size:10px;">[types field='pub-briefing-author'][/types], "[types field='pub-link-title'][/types]";</span>
          </li>
          [/wpv-conditional]
          
          
		</wpv-loop>

          
          

        <li class="listPub2">     
      <span style="font-size:10px;">AcceleratingBiz analysis</span>
          </li>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		[wpml-string context="wpv-views"]AcceleratingBiz analysis[/wpml-string]
	[/wpv-no-items-found]
[wpv-layout-end]
 
#607419

I assume we are talking about the shortcode [wpv-taxonomy-title], it should be able to output the term title with apostrophe.
The problem you mentioned above is abnormal, in case there is any compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks

#608756

Too big database. I'll get back to you. Thanks

#608771

You can duplicate same problem in a demo site, and export the database dump file, then update this thread with downloadable URL for the database dump file, thanks

#615884

Thanks

#615899

You are welcome