Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orderby title for wpt_productions shortcode? #310

Open
topkeket opened this issue Mar 13, 2021 · 3 comments
Open

orderby title for wpt_productions shortcode? #310

topkeket opened this issue Mar 13, 2021 · 3 comments

Comments

@topkeket
Copy link

Is there a way to sort/order productions list generated with the wpt_productions shortcode by title(in alphabetical order)?
We have over 500 productions and want to make a page where the productions are paginatedby letter(0-9,A, B, C, D,…)
We have tagged every production with a tag with the corresponding letter(first letter in the title) and it shows all productions of a chosen letter but theyre in an order in which they were created and i only found "order {asc or desc} Show productions in ascending or descending order. Default ." shortcode.

So what im asking is, Am i missing something that does this already or is there a way to add something like "orderby {title}" code or some other solution to this? thanks.

@slimndap
Copy link
Owner

slimndap commented Mar 13, 2021

Hi!

The [wpt_production] shortcode will always sort your productions by date.

The easiest way to come up with an alphabetically ordered list is to create your own list using WP_Query, since productions are just a custom post type (wp_theatre_prod).

@topkeket
Copy link
Author

Hi,
thanks for a quick reply. I read a bit about WP_Query and it seems to be beyond my humble wp coding/code editing capabilities but I guess this shouldn't be that hard for an actually skilled person. Since we're not in a hurry I'll slowly try to find someone to help me with this. Thanks for clearing that up though.

@slimndap
Copy link
Owner

Cool. You can also contact me at [email protected] if you would like me to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants