Want to filter only parent post in admin area

In addition to my previous answer add following code. It should work fine add_filter( ‘views_edit-books’, ‘add_filter_link’ ); function add_filter_link( array $views ) { $url = add_query_arg( array(‘bfilter’=>’parents’,’post_parent’=>0,’post_type’=>’books’), ‘edit.php’ ); $views[ ‘post_parent’ ] = sprintf( ‘<a href=”%1$s”%2$s>%3$s</a>’, esc_url( $url ), ( is_filter_active() ) ? ‘ class=”current” aria-current=”page”‘ : ”, ‘Post Parents’ ); return $views; } function … Read more

Taxonomy-{taxnonomy}.php is not working

In the absence of further information this diagram should explain the template heirarchy system: click for bigger Thus if we have a term ‘example’ then example.com/portfoliocategory/example will show portfolio posts using the template template-portfoliocategory.php and if that isn’t found it willl use taxonomy.php and then archive.php and finally index.php

Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”

I had the exact same problem like you. Don’t know why mikeSchinkels code doesn’t work anymore. But there are a new (WordPress 3.1) code for this, that works. I found it here: https://gist.github.com/541505#gistcomment-28441 (in mikes comments) I replaced mikes code from line 65 to 95, with this code. (check Mikes code on github) Other then … Read more

Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?

This worked fine for me, except the whole system above has some issue with my configuration (I made my wp installation Multisite) that broke all the other posts. They are all not-found, although the permalink is retrieved correctly every time, as it was found. I’m opening a new question for that other issue here so … Read more