jcalvert@eastbaynewspapers.com
Member
Posted 10 months ago #
I have a custom taxonomy set for my posts and would like to filter both the Calendar and Story Budget by taxonomy.
I have a Taxonomy of Town with different towns as terms. I'd like to filter the posts by those Towns. I wrote my own simple plugin to do this on the edit.php page but also need to filer on Calendar and Story budget.
Any examples?
http://wordpress.org/extend/plugins/edit-flow/
For the Story Budget, we have an open issue I'll try to get to in the next release. It shouldn't be too much work to change it to a different taxonomy. I assume you're referring to having each meta box show posts with a different custom taxonomy term.
For the Calendar, can you describe a bit more about how you'd like the functionality to work? Mockups, if possible, would be really useful.
jcalvert@eastbaynewspapers.com
Member
Posted 9 months ago #
You can check out a quick image concept of what I'd like be able to do here.
I use WCK Taxonomy Creator to create some custom taxonomy and terms for a site I'm working on. I'd like to be able to filter the calendar (& story budget) with those custom terms.
An example would be:
I have a custom taxonomy of Town with 6 different town names as terms ("Boston" could be one). In calendar, filter the content my those town names. Only see posts with term "Boston".
Hope this helps and I explained myself OK.
Yep, that explains it perfectly. I realize we don't have an existing Github issue covering this, so I've created one. We'll try to get to it in the next release.
jcalvert@eastbaynewspapers.com
Member
Posted 9 months ago #
Thanks. It will be a big help for sites that produce a lot of content.
This should be doable now in v0.7.4
samjco
Member
Posted 4 months ago #
This doesn't seem to work still.
I have 6 custom post types and no articles shows up on the story budget page.
samjco
Member
Posted 4 months ago #
Ok just added!! :)
change line 354 of story-budget.php
function get_posts_for_term( $term, $args = null ) {
$defaults = array(
'post_status' => null,
'author' => null,
'posts_per_page' => apply_filters( 'ef_story_budget_max_query', 200 ),
'post_type' => get_post_types(), //<-- ADDED
);
$args = array_merge( $defaults, $args );
samjco
Member
Posted 4 months ago #
For the Calender, Change Line 406 in calendar.php to:
$pargs=array(
'public' => true,
'_builtin' => false
);
$post_query_args = array(
'post_status' => $filters['post_status'],
'post_type' => get_post_types($pargs),
//'post_type' => $filters['post_type'], //<-- I commented this out
'cat' => $filters['cat'],
'author' => $filters['author']
);