Next,
I have a site in wordpress
, I created a page inside that site and on this page I will have a list of companies something like this:
Company A - (Company name)
- Company data (This data will be hidden, will appear when the user clicks on the company name).
Company B
Company C
I'm going to feed this list manually so I can have a day I'm going to add company that starts with X the other day company that starts with B and so goes.
Is it possible to do an automatic organization via javascript, where I put one company underneath the other independent of the initial letter of its name and when to go alphabetically?
I do not know if the question was clear, but in summary I want to know how to organize a list automatically in alphabetical order.
Thank you.
Personal, as I am using wordpress
I opted to use custom post type
as the colleagues suggested in the answers, legal I created post type
is working right, but it is still a bit complicated to organize them in alphabetical order, I was reading the codex which is a little too complicated alias PRA ME, and it says that the query function is in the query.php file, but in my theme it does not have this file. I took a look at the functions.php files and also did not find anything of query, what exact file should I "move"?