WordPress.org

Ready to get started?Download WordPress

Forums

WP Document Revisions
[resolved] I cant get ONLY the 'department' I have created for six documents to show up (2 posts)

  1. tsoheili
    Member
    Posted 1 year ago #

    [documents department="2000" numberposts='-1' wpdr-file-categories='2000' orderby='date' order='asc']

    I started with only:
    [documents department="2000"]

    but only 4 documents would show so I added numberposts and it became this:
    [documents department="2000" numberposts='-1']

    This them showed every document regardless of the department.

    I then added the wpdr-file-categories and it looked like about when I added the orderby and order sections to get them to show up in the correct order.

    I am attempting to put all of the financial reports for my company since the year 2000 until the present year so the department I have chosen is a child of a child and is only the year, and of course I started with the oldest set of documents, but hte problem still stands that it is not limiting the output to ONLY the department I have chosen. ('2000' in this case)

    http://wordpress.org/extend/plugins/wp-document-revisions/

  2. tsoheili
    Member
    Posted 1 year ago #

    Inside the includes/front-end.php around lines 122-124 add your attribute to the array.

    //list of all string or int based query vars (because we are going through shortcode)
    // via http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
    $keys = array( 'author', 'author_name', 'cat', 'category_name', 'category__and', 'tag', 'tag_id', 'p', 'name', 'post_parent', 'post_status', 'numberposts', 'year', 'monthnum', 'w', 'day', 'hour', 'minute', 'second', 'meta_key', 'meta_value', 'meta_value_num', 'meta_compare', 'department');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.