Automatic content index of just one category
-
My blog (http://lanocheyelhombre.com/ using the Ryu theme) is divided in two broad categories: “Fotografía” (photographs) and “Poesía” (poems).
I want people to easily find poems by their title using an index, just as you would in a book. I need a “Index” page that has all the links to the published entries under the “Poesía” category in alphabetical order.
I have already a Category Menu called “Poesía” (http://lanocheyelhombre.com/category/poesia-2/) but it just filters all poems, you still have to scroll down through all of them to find the one you want.
I know people can use the search option to do this, but sometimes people don’t remember the title and want to browse through only the titles.
I have thought of just manually doing a Page and writing down in alphabetical order every title of each poem I have published and link them to their respective entry. But it seems too much work for something that can be automated, specially because all the poems I publish are under the same category and nothing else is published in that category.
I would prefer it to be automatic, but if I have to update it by hand every time I add an entry I do not mind it as long as it works. I am just looking for an easier option.
In advance, thank you very much for your help and time,
Sergio Velasco Zwieger.The blog I need help with is: (visible only to logged in users)
-
If you have a category called “Poesía” and your post have to a tag named “Poesía”, you can add this code in page Poesía to create automatic index
[display-posts taxonomy="category" tax_term="Poesía" posts_per_page="-9999999" order="ASC"]
-
-
Sorry I have a mistake, we use slug from category not post tag.
[display-posts taxonomy="category" tax_term="poesia" posts_per_page="-999999" order="ASC"]
-
Sorry I have a mistake, we use slug from category not post tag.
[display-posts taxonomy="category" tax_term="poesia" posts_per_page="-999999" order="ASC"]
-
It worked perfectly!
Here it is: http://lanocheyelhombre.com/indice-de-poemas/
Thanks a lot, anhdao1106.
-
Just one more thing, the index is ordered by published date. Is there a way I can order it by alphabet?
-
Just add: orderby=”title” like this
[display-posts taxonomy="category" tax_term="poesia" posts_per_page="-99999999" order="ASC" orderby="title"]
It works with me.
-
- The topic ‘Automatic content index of just one category’ is closed to new replies.