I have a wp_query which selects posts from a CPT, using relation AND to select posts from two taxonomies (sector and expertise). I would like the order of posts returned to be random but I would still ...

I am using meta_value_num to output a list of items in order by a custom field. The custom field value that is being passed is 1, 2 ,3 or 4. The order works for the first 7 items but after that they ...

I need to be able to display a list of events on 1 page. The top list would be for upcoming events and to be sorted with earliest event first and the second list would be for expired/past events and ...

I just got a request from a new client who wants a shopping cart for a public school that sells hot lunches and drinks to students. They want the parents to be able to register, add their children to ...

I have to mimic a feature that was part of Wordpress 3.5 but was removed in Wordpress 4.0. When I am seeing the files uploaded to a post in the Add Media Modal, if I chose "Uploaded to this post", I ...

I am trying to filter posts with certain values and sort by the date field using ACF module. I have succeeded in filter with package and type. But when i added date sort, its not working. Please help ...

The link that the pre order module produces in My Account doesn't work. It has to display like this: /my-account/view-order/15977 but how it displays now is: /my-account/?order=15977. How can i change ...

I have created a parent category called " Shows " and have 8 different programs under it. I want to display the most recent post from all categories on first block of my template page.
The code I am ...

I should start by saying I have little to no knowledge of PHP, nut I am responsible for managing a wordpress site for a restaurant.
I have the menu items listed in order of price using the following ...

I am having an issue that i couldn't find on google and elsewhere.
To put problem in the context.
I am making a wordpress site where user can put their tutor listing for giving a tutorials, and i am ...

I found a snippet, which order all posts alphabetically. I wonder if is there a way to make it working just for one post-type? I have some custom post type in my website, and i want one of them to be ...

As I'm making one page website. Here is question I asked earlier:
Calling Specific Pages with wp query Part II
As I'm calling all pages by WP_Query which is "order by = ASC" I want to call it "order ...

I created custom post types and a taxonomy-adhesion.php file (by copying the contents of the archive.php file).
I wish the search result would appear in alphabetical order (or by title), but it does ...

I want to order a list of post on basis of ratings. I have used meta key "wp_ratings" for storing the rating value in wp_postmeta table.
Now I want to sort all posts .
If a post does not contains the ...

Is it possible to sort posts by custom column in wp_posts table (in this case, 'fav_count' column) using pre_get_posts filter? If not, is there any other way to do this before the main query is run, ...

I have a custom post type that have a meta_key custom_meta_sponsored that owns alphabetical values. "X" means post doesn't sponsored. I want to show the archive page in custom order, sponsored first ...