Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
15 views

dispaly page order with page name in custom post template

Hi i am building a custom template to show the list of pages names with link to the page, do we have any chance to show its parent and its menu order. by using wp_list_pages
1
vote
1answer
56 views

How to set multiple `orderby` in query argument?

I am trying to fetch pages by multiple ordering. menu_order in descending and title in ascending. Following is the argument: $args = array( 'post_type' => 'page', 'posts_per_page' => 20, ...
0
votes
0answers
17 views

getting specific items from menu

In trying to build 2 linked menus, lets say the hierarchy is like this (In the menu options) - A -- B -- C -- D -- D1 -- D2 - A1 The first menu I want it to be fixed so I fetched it with ...
0
votes
2answers
62 views

How do I order pages and categories by ID or name in the same query?

I would like to query most of my pages and categories on the homepage. So far I am able to get the pages and category (posts), but I cannot order the list the way I want to. I want to be able to get a ...
0
votes
1answer
42 views

Is there a way to order posts and custom post types as one group?

I have tried several plugins which seem to purport to do this (like this one), but they either don't or are very poor in their implementation and cause problems (the one linked seems to randomly ...
0
votes
2answers
166 views

Logout hyperlink within a sub-menu

I have the following secondary navigation menu on my website which has been built using the native WordPress Appearance > Menus feature: I am also using the following lines of code in my ...
0
votes
0answers
117 views

How do I get post attachments in menu_order in Wordpress?

I'm struggling to get menu_order to work for images attached to a post. I am trying to pull all of the images attached to a specific post in the order specified via the drag-and-drop interface in the ...
0
votes
1answer
76 views

Creating and populating custom nav menu (menu-item-position not working)

Im automatically creating pages with the below code, after that I create a custom menu and insert all the pages to this menu. $create_pages = array('Home', 'About', 'Contact'); // there will be more ...
0
votes
1answer
128 views

Order posts by separate menu order for different sub-categories

My scenario is as follows: Categories: 1. Category A - Sub-Category A1 - Sub-Category A2 - Sub-Category A3 2. Category B - Sub-Category B1 3. Category C 4. Category D The ...
0
votes
1answer
150 views

menu_order not working with slugs that start with admin.php

I am filtering the menu_order hook (codex link -> http://codex.wordpress.org/Plugin_API/Filter_Reference/menu_order) to change the order of my links in the admin menu. Currently the ordering will not ...
7
votes
2answers
128 views

Are there any reasons you can't use strings for admin menu positions?

When interacting with the admin menu, for instance via add_menu_page, there is a $position parameter. The inline docs indicate that this should be an integer. The Codex agrees, but adds a note that ...
0
votes
2answers
56 views

Echo order box (in pages)

How can I echo the value of the order box in posts? See photo.
0
votes
1answer
461 views

Why isn't my multiple orderby working?

I have a custom category page with the following query: $args = array( 'cat' => $portfolioCategories, 'posts_per_page' => $itemsPerPage, 'orderby' => ...
1
vote
1answer
310 views

Change position of media in admin menu

Is it possible to set the position of an item in the admin menu? I'm trying to move the media link under my custom post types. I know that the media link is position 10. Is it possible to set it to ...
0
votes
1answer
50 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 ...
0
votes
2answers
304 views

Resetting menu_order to 0 for posts in PHPmyAdmin?

Installed a plugin that allows the re-ordering of posts from any post type / category / tag using a drag/drop interface. After some time of using, my post order went haywire and new posts began to ...
1
vote
1answer
588 views

Order terms by term_order

Context Post Type: Resources Taxonomy: Media Type, Term: Audio Taxonomy: Series The following code displays a unique list of the custom taxonomy "Series" I want to order the list by term_order, but ...
1
vote
1answer
3k views

How to use “menu_order” field for posts?

I have a special case where I'd like to order posts in a custom order and it would be great to use the "menu_order" field that is normally only used for pages. What would be the best way to expose ...
0
votes
1answer
2k views

Sort get_children by menu_order

I'm using the jQuery Carousel Gallery and unfortunately it's not working with WP's new v3.5 gallery ordering. When the client drags to rearrange images, those changes are not reflected in the ...
0
votes
1answer
2k views

Get current menu_order

WordPress implements a simple order functionality by default. What's the common method, to retrieve the menu_order for the current post or page?
2
votes
0answers
78 views

Page Attachment Permalink Structure based on Menu Order?

I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this. When using pretty links in WordPress, media attached to ...
2
votes
4answers
2k views

Wordpress 3.5 Gallery Menu Order not set?

With the new Gallery editor in Wordpress I am able to set up my galleries and to drag the Thumbnails to re-arrange the image order. On the backend that seems to work fine. But I ran into an issue when ...
0
votes
1answer
508 views

echo menu_order value in my theme

I thought this would be a simple task, but I cannot find anything on google. I would simply like to echo the meun_order value in my loop. I tried this but it's not in the post_meta table, its in the ...
1
vote
1answer
915 views

get_pages() as per custom menu order

I'm working on Single Page WordPress Theme where I want to get_pages() as per custom menu order. I have gone through the reference for get_pages() which only allows for default menu : ...
0
votes
1answer
115 views

Compare string with post id in wpdb and do stuff when match is found

I'm looking for some help tying in with the wpdb to compare and change certain values. I'm very novice with mysql handling so I really appreciate any help on this matter! What I want to do is to go ...
0
votes
1answer
140 views

Exclude pages by menu order

i have a "Default Page Generator" on theme activation i have created... in that file i set 'menu_order' for each page. i want to exclude pages with menu order bigger then 50 from the default ...