Page for custom taxonomy

This is a default part of the custom taxonomy functionality built into WordPress. When you register your taxonomy, the following argument play a part in determining whether to display that archive and where: public (is it accessible on the front end?) rewrite (how do the permalinks work?) You should read through all of the arguments … Read more

Have posts included on a page that share same category

(…) are pages in fact posts? You won’t think what every thing is a post type in WordPress: Posts, Pages, Links, Nav Menu items… The same goes for Terms, Categories and other things, which are built in Taxonomies. You can take a look at it with adding the following very late in your theme (the … Read more

posts going to 2 pages/categories only show up in 1

First thing : you should not use category ids directly. Use slugs instead : it’s easier to maintain. <?php query_posts(‘category_name=portfolio’); ?> Second thing : why did you put a query parameter in the_post ? This function does not accept any parameter (see the Codex). Third thing : the call to query_posts(‘cat=-4’); will show all posts … Read more

Getting subpage of subpage – Custom posts

The problem is here $subpages = get_pages( array( ‘child_of’ => $pageId, ‘sort_order’ => ‘asc’, ‘sort_column’ => ‘menu_order’) ); ‘child_of’ parameter also queries for the grandchildren along with children. Use the ‘parent’ parameter instead which will only query for the direct children. Once this is done, you’ll use the same code in your foreach again foreach($subpages … Read more

advanced paging in wordpress

In case, if you are asking about nesting of pages, then you do the following – Create the edit page, and make the profile page the parent of the same (you can see this take effect when you update the page and the url changes to www.mysite.com/profile/edit) Similarly, create the image page, and make the … Read more

Publish page by invoking submit via jQuery

Trigger the click event of the publish button instead, and let WP do the work. <script> jQuery(document).ready(function( $ ) { $( “#secondary-publish” ).click(function () { $( “#publish” ).click() }); }); </script> Don’t use language (it was deprecated in HTML 4.01!) – you can drop type too (WP now has an HTML5 doctype).

Can I connect a page to a taxonomy?

You can register taxonomies for objects (such as posts & pages) like so: add_action( ‘init’, ‘wpse_71914_assign_page_taxonomy’ ); function wpse_71914_assign_page_taxonomy() { register_taxonomy_for_object_type( ‘taxonomy_name’, ‘page’ ); }