WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] Sort Calendar & Story Budget by Taxonomy (9 posts)

  1. jcalvert@eastbaynewspapers.com
    Member
    Posted 1 year 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/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    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.

  3. jcalvert@eastbaynewspapers.com
    Member
    Posted 1 year 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.

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    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.

  5. jcalvert@eastbaynewspapers.com
    Member
    Posted 1 year ago #

    Thanks. It will be a big help for sites that produce a lot of content.

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    This should be doable now in v0.7.4

  7. samjco
    Member
    Posted 1 year ago #

    This doesn't seem to work still.

    I have 6 custom post types and no articles shows up on the story budget page.

  8. samjco
    Member
    Posted 1 year 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 );
  9. samjco
    Member
    Posted 1 year 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']
    		);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic