- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello
I have recently uploaded a wordpress based homepage.
My client would very much like to be able to sort posts by way of custom fields.
Here is the specific page:
http://www.bisgaardlandskab.dk/ny/projekter
The custom fields are under each post called "type", "størrelse" (size), "årstal" (year).
Is there anyway I will be able to do this?
Thanks
Simon
thank you
Well it sort of works. Maybe you can tell me how to make it work as it should.
What i want is to make a link that makes it possible to sort by e.g “type”
If I add this:
Of course I need to add some more code for this, but I can’t seem to find the answer anywhere.
Thanks
Simon
What do you mean by link? Do you mean a few buttons that sort by letter or type or date, etc?
yes
links that makes it possible for visitors to filter the posts
/Simon
You could write your own PHP for this. Perhaps it links you yoursite.com/?sort=whatever
Then you $_GET, sanitize it, and use that in your query_posts on that page as the meta key. You could pass any number of variables this way.
Hi Chris.
Thank you very much. I am sure that this would work.
I am just a bit unsure about exactly how to do it. My php skills are quite limited…
Thanks
Simon
Hello again
Is there any simple way of describing this to a php noob?
/Simon