Skip Navigation

[Gelöst] Create an Alphabetical Listing – Like a telephone directory

This support ticket is created vor 10 Jahre, 3 Monate. 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)

This topic contains 8 Antworten, has 2 Stimmen.

Last updated by Craig vor 10 Jahre, 3 Monate.

Assigned support staff: Luo Yang.

Author
Artikel
#21897
alphabetical listing.png

Hi all,

Just wanted to ask a quick question in case anyone had done something along these lines already… Can Types & Views allow me to create a telephone like directory like the attached screen grab?

Kind regards,

Craig

#21940

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hi Craig,

Yes, I think Types & Views can help you build the telephone directory.

Regards
Luo

#22260
View Query.png
listing2.png

Thanks Luo.

I’ve been giving it a try and have made some progress.

I created a Custom Post Type "Therapies" to be used with "Categories" Taxonomy.
I then set up Categories for A, B, C thru Z and assign each "Therapy" the relevant A, B, C thru Z category depending on the initial character of the "Therapy".
I created a View Query which is set to "WordPress Archive" and uses Post Type Loops = Therapies and Taxonomy Loops = Categories
I created a Content Template with the following:
[wpv-post-taxonomy type="category" separator=", " show="name"]
[wpv-post-link]

So it almost displays as I want it, but I only want the Category "A, B, C" etc to display once and then all "Therapies" will be grouped under that Category (like the screen grab in my previous post).

Any help with how to get this working would be most appreciated. I know I can't be far away.

Best,
Craig

#22335

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Craig, could you try this:
1) Create a Normal View "Single Category List", Filter with:
Therapies, ordered by post title, descending
Select posts with taxonomy: Categories , selected by the parent view.

2) Create a View template "Single Category List Template", put the View "Single Category List" into it,

3) Create a Normal View "Therapies category list", for list all a~z, Filter with:
This View selects Taxonomy of type Categories, ordered by Name, ascending
Fields to include:
Taxonomy title
View template "Single Category List Template"

Then put the View "Therapies category list" into one of your page.

#22393
04 End Result.png
03 Therapies Category List.png
02 Single Category List Template.png
01 Single Category List.png

Thanks for that Luoy, I am definitely much closer to the result I am looking for, but I am getting "No taxonomy found" beneath each Category heading.

I have attached some screen grabs showing how I have set it up (hopefully just as you outlined above)

I have now uploaded to a test web server online. If you would like to get access to the admin side, please let me know.

#22520

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Craig, the View "Single Category List" should filter with:
Therapies, ordered by post title, descending
Select posts with taxonomy: Categories , selected by the parent view.

If you need assist to do it, please send the login detail of your website to my email: luo.y@onthegosystems.com

#22996

Hi Luoy. Did you ever receive my email with login details?

#23012

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Just got it, I have re-created the View "Therapies Category List", this is result page:
hidden link

#23014

Thank you very much - you are a complete star. I must have been quite close to getting it right.