Tagged Questions
0
votes
0answers
51 views
Archive page - display specific post first
This is something I haven't heard of before but must be fairly easy to do?
In the archive.php file, Given the id of a certain post (probably passed as a variable through the url) I want to know how I ...
3
votes
1answer
606 views
How can I custom order the results from wp_list_categories?
I am using wp_list_categories to return (you guessed it) a list of categories within a custom taxonomy. The orderby parameter accepts sorting by ID, name, slug, count, and term_group. Is there a way ...
0
votes
1answer
100 views
Sort by category and then date?
I'll try to be as clear as possible. My Wordpress site has multiple custom categories and posts types all which need to be displayed on the home page blogroll. But I need the first post on the ...
0
votes
2answers
143 views
Custom loop request based on custom field
I have many post, all categorized. So 100 post, 40 in cat=4. All those 40 post have a custom field name point with a rating in there (how many point win). Si the question How to loop through all the ...
1
vote
1answer
67 views
Sort posts by most recently modified
Is there a way to list posts in the order in which they were modified?
For example;
A user posts 5 posts (#1 being the oldest and #5 being the newest), by default they would be listed with #5 being ...
1
vote
4answers
814 views
Loop through all tags & output posts in alphabetical list
I have a bunch of posts that each have multiple tags, and I'm trying to find a way to output all of them on a single page, organized under an alphabetical listing of their respective tags. E.g. if ...
0
votes
1answer
551 views
How to sort posts based on the value (number) of a post's metadata?
I'm using the GD Star Rating plugin and the bbPress plugin. The first plugin do have a argument to sort posts by number of votes. But unfortunately, It doesn't work with WP_Query (and apparently the ...
0
votes
1answer
271 views
Category sorting via The Loop [closed]
I have this code trying to sort by a specific category. I keeps saying it has an unexpected $end on line 39. What did I do wrong in the code. I've been playing with it and reading the codex for a ...
0
votes
1answer
488 views
How can I sort my loop based on meta data, using a form?
I've created a custom post type called 'properties' with custom meta boxes of 'price' and 'rooms'.
I have a custom loop-property-archive.php to display the properties.
What I would love to have is a ...
0
votes
0answers
232 views
Sorting loop by 'orderby' 'modified' not working?
I'm trying to build a photostream that sorts the loop by the modified date of a post type. The goal being that as a post is updated with new attachments, it gets pushed to the front of the loop. My ...
1
vote
1answer
2k views
Sort pages in loop by admin's page attributes order field?
Is it possible to sort pages in the loop using the admin's order field (under page attributes)?
2
votes
4answers
2k views
How to return results of a get_posts() in explicitly defined order
I'm trying to create a loop of explicity ordered posts, for example:
<?php $args = array(
'include' => '1,3,8,4,12' ); ?>
<?php get_posts( $args ); ?>
The results are ...
0
votes
2answers
708 views
Filter or order based on custom field
I have added a custom field to some posts called 'frontpagerank'
The plan is to order the posts by this value but first I just want to filter out any that don't use a front page rank.
I have achieved ...