Support » Plugin: WP Document Revisions » I cant get ONLY the 'department' I have created for six documents to show up

  • Resolved tsoheili


    [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)

Viewing 1 replies (of 1 total)
  • 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
    $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’);

Viewing 1 replies (of 1 total)
  • The topic ‘I cant get ONLY the 'department' I have created for six documents to show up’ is closed to new replies.