wp_list_pages sort order by custom nav menu order

Using wp_list_pages you can sort order only by: ‘post_title’ ‘menu_order’ ‘post_date’ ‘post_modified’ ‘ID’ ‘post_author’ ‘post_name’ anything else (like order by custom menu order) you would have to write your own function. But a better way to get it done would be to create a custom walker for it so you could control the output.

Using the_excerpt() on a page

While this was far from clear in the OP at first, I think this might be a good solution. Just make a shortcode to place the excerpt in the body. (This is a bad idea if you want this on every page. This is a good idea if you want it once in a while … Read more

How to control who can view certain pages in BuddyPress? [closed]

I am new to BuddyPress so I don’t know which functions and variables to use here. Read the codex – for example: http://codex.buddypress.org/developer-docs/the-bp-global/ You could create a function in your theme- functions.php or in bp-custom.php and call it from template files and pass it parameters like allowed_users, etc. Or you code hard-code something like this … Read more

How to insert category list into post creation page, and retrieve chosen categories?

By default page post type doesn’t support category taxonomy. But you can easily fix it by register category taxonomy for page post type: add_action( ‘init’, ‘wpse8170_init’ ); function wpse8170_init() { register_taxonomy_for_object_type( ‘category’, ‘page’ ); } Now you will see categories meta box in the same place as you see it at post creation page. To … Read more

Category.php loads first before page.php?

WordPress select template, following its Template Hierarchy logic. What you have that is category archive, templates for individual pages are never considered for it. Also.. with the view of SEO, page.php is more important then category.php.. right? PHP template file is entirely back-end concepts, it doesn’t have anything to do with SEO inherently.

What is full URL for a post?

There is nothing after the slash. Do not see the address as something like a directory structure. It is just an address, a unique string to tell WordPress which content it should load. That content will be loaded into any template, and that template again could be composed of multiple separate files from the theme.