Passer la navigation

[Closed] taxonomy-based output

This support ticket is created Il y a 2 years, 3 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 2 years, 3 months.

Assisté par: Minesh.

Auteur
Publications
#2686177
jasper-mockup.jpg

When our rescue dogs are adopted, we change the taxonomy from Available to Alumni which moves them from this archive page lien caché to this one lien caché

Users are still accessing individual dog profiles through Google or other sites that give the appearance an alumni dog is still available, so I added:

[wpv-conditional if="( CONTAINS(#(dog-taxonomy),'alumni') )"]<h2>[wpv-post-title] has already found a furever home.</h2><p>Please visit lien caché for our currently available dogs.[/wpv-conditional]

See on front end: lien caché

How would I further tell it to not display the About info, etc. so the page is just this?

#2686223

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you do not want to display the dog profile page if it has been assigned a taxonomy term "alumni" - what if you add conditional display on your dog profile page conditional statement that if taxonomy term "alumni" is assigned then you can hide the result.

#2686531
jasper-mockup.jpg

I don't want to create a 404. I just want it to return different content if the taxonomy is "alumni."

Please see image.

#2686596

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

You can check the taxonomy term and display the conditional content using the [wpv-conditonal] shortcode.

I already see you are using it:

[wpv-conditional if="( CONTAINS(#(dog-taxonomy),'alumni') )"]<h2>[wpv-post-title] has already found a furever home.</h2><p>Please visit <em><u>lien caché</u></em> for our currently available dogs.[/wpv-conditional]

Do you mean you want solution when taxonomy term is NOT alumni?

The topic ‘[Closed] taxonomy-based output’ is closed to new replies.