The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
99 views

How to add new tab to admin list of posts and handle result list

The goal is to show posts with special values of custom field (post meta) in separate tab. I know how to add new tab, here is a code: add_action( 'views_edit-post', 'remove_edit_post_views' ); ...
1
vote
1answer
501 views

How to Sort posts by Vote Count?

Does anyone know how to automatically sort posts by Vote Count? I am using a plugin called WP Voting where a visitor can vote on a post. The plugin keeps track of how many votes each post has. The ...
0
votes
1answer
73 views

Sort appearence order in the_content()

I have an About the Author plugin, echoing inside the_content(), and a Facebook Like Button, that I hardcoded in the HTML, after the_content(), here's how it is outputting: The Facebook Like button ...
0
votes
3answers
347 views

Sort my event calendar by date

I'm currently building an event calendar on WordPress with a custom post type. I'm using custom fields for date, description, etc. Now I want to sort the events by date.. So --> January 3, 2012 ...
-1
votes
1answer
97 views

How do i Sort my Posts

I search for a solution how i can sort the article in my page. I searched for hours in google and try severla things but nothing works :( . Anyway, maybe anybody has a good tip for me. I want a ...
0
votes
1answer
134 views

Sorting meta box values by start- and enddate and all dates in between

What I've been attempting to write is a function that will allow me to sort a list of WordPress posts by their meta values start date, end date and all dates in between. I've set up a custom metabox ...
0
votes
0answers
38 views

Is it possible to make custom columns in the user.php file to be sortable based off meta values?

I've googled around and not seen any answer that really works so far so I thought I would check and see what others say. I'm working on a plugin that adds three different columns filled with meta data ...
0
votes
0answers
86 views

Columnizing custom post type based on custom taxonomy

my first question here, so I'll try to be thorough. I have page on which I'm trying to sort a custom post type with around 350 different artists by a custom taxonomy. The custom taxonomy is basically ...
0
votes
1answer
62 views

Sort Posts with custom meta key by default which is currently set as optional

I'm new to Wordpress so please bear with me. Please check this link The posts are currently sorted by date. But if you mouse over on Latest Articles you see there are other options for sorting like ...
0
votes
0answers
271 views

Drag n Drop Post Order for multiple Custom Post Types

I have two custom post types (Branding Elements and Products) that I'm showing on a single page, and the client wants to be able to control the sort order of the page. What would be the best course ...
0
votes
2answers
737 views

Native gallery sorting is ignored

On my website, I recently got a quite strange problem. I used to upload images via the nextGen Plugin. But since with this plugin google doesn't seem to index my pictures, I wanted to switch back to ...
0
votes
1answer
2k views

Woocommerce, ordering products by default on shortcode pages

In my woocommerce store I have a Sale Products page. In this page I use the shortcode to display the products on sale [sale_products per_page="40" columns="3"] In the store the products are ordered ...
5
votes
6answers
3k views

visually sort ordering “custom post types” for end users

Now with those custom post types and other bits of content that don't necessarily need to be organized chronologically by date, for example: the client has a 100 T-Shirts as custom post type "SHIRT" ...
0
votes
1answer
103 views

Sortable column containing numeric values for Custom Post Type at WordPress Backend

I have custom post type named Cars. By default, it is sorted by post publishing date, which is very unusual. WordPress should have provided option to sort columns containing numeric values. Alas, ...
0
votes
2answers
276 views

Help alphabetically sorting $terms from get terms('wpsc_product_category'

I'm trying to get a list of wpsc_product_category terms, for a given category, and have them display in alphabetical order (by name) with links to their pages. This gives me the right list, but the ...
0
votes
0answers
101 views

Wordpress sort custom field values in alphabetical order

I am using WordPress Custom Content Type Manager to build a Literary Agency website. The page I'm stuck on is the Authors page which displays thumbnails of all the books related to the author. The ...
0
votes
1answer
19 views

Wordpress - show all posts + ones with specific tag

I have 3 types of posts as below Normal posts without any tag With "featured" tag With "sold" tag On a page, I just want to show normal posts + ones with featured tag and don't want to show posts ...
1
vote
1answer
1k views

Sorting Posts Via Custom Taxonomy Values Using Checkboxes?

I am working on a project that has a dropdown of custom taxonomy values called "Disciplines", there are only 4 of them in the dropdown. The way it has been designed is that you can select more than ...
0
votes
1answer
41 views

Displaying posts sorting by a custom criterion

I wish to display my posts, not according to the date, but to a completely custom criterion. Ideally, I would manually set a numerical value to each post and the WP loop would display posts according ...
0
votes
1answer
611 views

Advanced custom fields sort repeater by date

I have a repeater field on a page template to show small snippets with a link that needs to be sorted by date (recent 1st). I'm using the current code, but there isn't any sorting in place. ...
0
votes
1answer
33 views

How to rearrange a pool of posts joined using two queries?

I need to select posts for two different months (current, past). As far as i know, it is not possible to pass m date parameter as an array of integer instead of an integer, so I am performing two ...
0
votes
1answer
232 views

If meta_key has value = 6 | Change the wp_posts.post_date to current date

I have three sections: 1-New posts 2-Trending posts 3-Hot Posts I'm using a Vote plugin and i sort every section like this: New Posts: $args = array( 'meta_query'=> array( array( ...
0
votes
1answer
629 views

Add a “default sorting” menu to child store pages

I'm new to WordPress WooCommerce and I can't figure out how to add a "default sorting" drop-down filter to my category shop pages. I know it's on the plain old "SHOP" page, but my navigation doesn't ...
1
vote
1answer
96 views

Sort by site/blog column in Multisite

I use WordPress Multisite and made a plugin that adds columns with some data. My code is based on this WP Engineer article. The key function in WordPress Multisite is manage_sites_custom_column. And ...
4
votes
1answer
232 views

WordPress: Sortable Metabox Fields Not Saving Position

I've run into a problem that has got me stumped: after upgrading to WP 3.6 my sortable metabox fields are not saving their position when you re-order them. Below is my code: PHP: function save_box( ...
2
votes
1answer
172 views

Arrange and separate posts

On a particular archive page I've created, I'm listing a number of posts by post name and they're listed in alphabetical order. Is there away to have them separated even further? As in all posts ...
0
votes
0answers
59 views

What is the best way to sort posts by a custom algorithm?

I'm wondering what is the best way to sort posts on homepage using a small algorithm like custom_field_votes / ( post_hours_old + 2 ) ^ 1.8 I have tried creating a new custom field with the result ...
0
votes
2answers
711 views

Select custom posts by meta_value and sort by a different meta value

I have my query set up like this: $article_query = new WP_Query(array( 'meta_key' => 'issue', 'meta_value' => $post->ID , 'post_type' => ...
3
votes
3answers
609 views

Fulltext search in posts sorted by relevancy

I'm building a custom search page and what I need is to sort results by relevancy (eg. occurences of a keyword) Using MySQL docs I've built this query: SELECT ID FROM $wpdb->posts WHERE MATCH ...
0
votes
1answer
70 views

Sort Posts Alphabetically by Multiple Categories [duplicate]

Basically I have an array of posts which I want to sort by title. $categories = get_categories('child_of=4'); $arr_records = array(); $post_data = array(); foreach($categories as $category) { ...
0
votes
1answer
82 views

Add Sort Link in Custom Post Type List

I need to add a link here, beside the Published link: How can I do it? I'm trying to filter my custom post type by meta values and need a link to do it. Thanks.
4
votes
5answers
4k 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
1answer
3k views

How to create a category and sub-category sorted blogroll with all posts?

I would like some help to post all the posts of my website into a blogroll sorted by categories and subcategories. The end-result HTML I would like to see displayed would be something like this: ...
2
votes
2answers
538 views

Search results sorted by post types

I am working on a site with several post types - 4 to be exact - and I am trying to setup the search results page to have a filter/sort the results by post types. For example, when a person searches ...
0
votes
1answer
230 views

Alter post order on taxonomy template

I have a taxonomy template that is returning the correct posts (actually a custom post type) but I want to alter the order in which the posts are displayed. However, nothing I've tried will change the ...
0
votes
0answers
82 views

Reverse pagination issue

I installed the Default Sort Ascend plugin for Wordpress because I needed the opposite of how Wordpress displays its posts. It works awesome except for the pagination. Now the Previous and Next ...
0
votes
0answers
544 views

Woocommerce Sorting does not sort the results after page reload

I have code in index.php that shows the Woocommerce products and also provides the dropdown for sorting. Regardless of the option that I choose from the dropdown, the page reloads and yet, it shows ...
5
votes
2answers
381 views

Can I force a metabox to be in one column?

Suppose I created a custom metabox for the add/edit post page that uses a wide width (not suitable for being in the sidebar), is there a way of keeping it in the middle column only and sortable while ...
0
votes
0answers
113 views

Order Events by Category or Type, The Events Calendar

So I've using the Events Calendar Plugin which is really working well for what I am trying to accomplish. However, I have run into a snag. I want to organize this query below by displaying an ...
0
votes
0answers
31 views

Sorting Custom Posts by category

I want to sort posts of my custom post type on a page. i.e. any visitor can select a category from drop down to list posts of that category on top. Can any one help to do this task? I tried a lot and ...
2
votes
2answers
869 views

Sorting: custom query with orderby meta_value_num THEN by title

i try to run a custom post type query to match following criteria: sort movies first by year in descending order, after that ("inside" the year order) by title alphabetically. desired output: ...
1
vote
1answer
169 views

Sort by page information by Ascending Numbers

Basically I have a problem that I have details being pulled from advanced custom fields and I currently have them ordered by page title in ascending order. However, instead of ordering them Ascending ...
0
votes
1answer
165 views

How to filter posts by category INSIDE the loop

I'm trying to sort my posts like so: CATEGORY 1 - post title - post title CATEGORY 2 - post title - post title I have no problem achieving this with a custom query: <?php $args = array( ...
0
votes
1answer
422 views

Reorder plugin items in the admin menu

Is it possible to reorder plugin menu items and custom admin items in the Admin menu without modifying the position in the plugin itself? I've tried using the method described here "Changing the Menu ...
0
votes
1answer
253 views

Exclude posts with specific meta_value while sorting by a separate meta_value

I am trying to exclude posts with a specific meta_value with a specific meta_key while also sorting the posts by a meta_value with a different meta_key. This is my current code for the WP_Query ...
0
votes
1answer
168 views

How To Show Get Adjacent Posts If Posts Are Sorted By Custom Field

I want to get the ID of adjacent posts. For posts sorted chronologically you can use: get_adjacent_post Are there any standard methods for finding the adjacent post if the posts are sorted by ...
1
vote
1answer
741 views

Archive listing of posts by publish year (multiple years)

I have an archive page showing all blog posts (in a specific category). With a growing number of posts, I want to separate these by publish year. For example (simplified), I'd like the following: ...
0
votes
1answer
160 views

Adding Sorting to Website?

I would like to add sorting but don't have any idea how ot go about it. I would like to be able to sort by: Date, Title, Price (custom field), Comments, Views, ASC + DESC What would be the ...
0
votes
1answer
193 views

How to get alphabetic listing x other posts, based on first letter post?

Let's say I have a post called "Hello World" and I am on that page... Let's say I have different posts like "Haaaa" and "Hoooo".... What I want to do is showing Haaa and Hooo in a different place (let ...
0
votes
1answer
49 views

List CPT by menu_order with children right after parent

I registered a custom post type drawer where my posts are ordered using menu_order. Each drawer could be a child of another drawer, on a multiple depth (parent > child > child of child > child of ...