Navigation überspringen

[Gelöst] Alphabetical view filter term with specific character glossary

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
Alphabetical view filter term with specific characgter glossary

Solution:
You need to use the view's filter hook "wpv_filter_taxonomy_query" with default WordPress hook "terms_clauses" in order to filter the view with specific character.

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/alphabetical-view/page/2/#post-1241580

Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_taxonomy_query

This support ticket is created vor 5 Jahren, 7 Monaten. 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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 23 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von ThorstenS967 vor 5 Jahren, 7 Monaten.

Assistiert von: Minesh.

Author
Artikel
#1239705

Hi Nigel,
I want to show in a view similar to this topic: https://toolset.com/forums/topic/creating-an-a-z-alphabetic-view/
My client creates tags (the WOrdPress buolt in tags) for the CPT's. Now is it possible to crate an alphabetical view with the letters from A-Z and if you click on one letter, the related tags will be shown? It should look like similar to this site: versteckter Link

Thanks
Thorsten

#1239714

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - do you mean that you want to display your posts group by tags name? or you want to display tags that belongs to a specific characters like A or B or C?

When I say display posts group by tags:
Tag A
- post 1
- post 2
- post 3
Tag B
- post 1
- post 2
- post 3
Tag C
- post 1
- post 2
- post 3

#1239735

Hi,
I want to display it the way, that there are the the alphabetical letters and if you click for instance on the A, it has to show me all tags that begin with an A and so, so I want to display it like the way you mentioned in your second question.

#1239759

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

So as suggested here: https://toolset.com/forums/topic/creating-an-a-z-alphabetic-view/#post-457061

You need two views,

create a custom taxonomy alphabets and add A to Z characters as terms:
- the first view to display the alphabets and add the following to loop editor:

<a  href="?[wpv-taxonomy-id]"> [wpv-taxonomy-title] </a>

- the second view to display the tags belongs to term Id set as url param.
- Add first view just before the [wpv-items-found] shortcode.
- Add the Taxonomy term filter as:

Taxonomy term ID is set by the URL parameter "terms-filter"

- Add something to this view's loop editor, for example:

<li> [wpv-taxonomy-link] </li>

Create a new page and add the second view.

#1240811

Hmm. That doesn't work. The first view will not be displayed (no items found) and I think, for the display of Aphabetical letters like this: versteckter Link
Maybe it's better, if you could take a look, on how I created the two views. Should I give you login credentials?

#1240813

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Sure. Please send me access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1240852

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Thank you for share access details but when I try to access the wp-admin is says:

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Can you please send me working test site with problem URL where you added your view?

#1240866

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

I checked with one of my colleague here and he also see the same thing when he try to access the wp-admin:

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Can you please check with your hosting or if there is IP based blocking or something.

#1240879

You are right, thanks for the hint. A week ago there was another thread I opened and provided credentials for your colleague Nigel. Nigel could login, but I guess he is living in anotehr country with a different IP so that the login worked for him the whole time. But there was a massive security attack that day from the IP I blocked when someone tried to login with ToolSet Username every 2 minutes the whole day. I than blocked the IP adress.
Does it work now?

#1240890

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

No - I can not access it yet.

#1240900

For some reaon "WP Cerber" blocked you. I put your IP on the white list. Please try agai. If it still doesn't work, I will deactivate WP cerber plugin.

#1240928

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Still - not working.

#1240933

I deactivated the plugin. Hope it works now.

#1240943

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

No luck still. I just can not able to access the wp-admin and it throws the same message I shared before.

#1240974

Ok. Could you please open a private message again? I migrated a WordPress clone of the original WP-installation to my own server, so we can try this way.