google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

_media.php override not working properly - sorting of media defaulting incorrectly. #537

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please make sure you are including enough information to make this a valid
bug report: https://code.google.com/p/wordpress-custom-content-type-
manager/wiki/ReportingBugs

What steps will reproduce the problem? (Be *specific*)
1. Overload the post_selector/_media File as specified here: 
https://code.google.com/p/wordpress-custom-content-type-manager/wiki/Config_post
_selector_media
2. Changes made in /uploads/cctm/config/post_selector/_media.php don't change 
anything in the way that selecting media files via the custom content types 
functions. 
3. Even though the default is DEC by ID, it's defaulting to ASC by ID in the 
display. 

What is the expected output?

I expect edits made to this file will change the sorting/number of posts 
displayed when I try to attach custom content media to a post.

The default setting for sorting is DESC based on ID. It's displaying ASC based 
on ID. I tried changing this to post_name (ASC and DESC), post_date (ASC and 
DESC), but none changed the ordering. 

As a side note the search filtering by mime type is working correctly using the 
admin interface setting.

What do you see instead?

No changes made in that file are effecting the display, number, or ordering of 
the media. 

Does the problem continue if you disable all other plugins? (plugin
conflicts cause a LOT of problems, so please isolate the problem)

Please copy and paste the system information that appears in a yellow
textarea when you click on "Report a Bug" on any CCTM admin screen (this
includes the version of the
plugin, the version of PHP, the version of MySQL, a list of other active
plugins etc.):

*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.7.11-pl
WordPress Version: 3.8
PHP Version: 5.3.27
MySQL Version: 5.1.39-log
Server OS: Linux
Language: 
------------------------ 
ACTIVE PLUGINS: 
 * BackupBuddy v.4.2.9.2 [http://ithemes.com/purchase/backupbuddy/]
 * bbPress Genesis Extend v.1.0.1 [http://wordpress.org/extend/plugins/bbpress-genesis-extend/]
 * bbPress v.2.3.2 [http://bbpress.org]
 * BuddyPress v.1.8.1 [http://buddypress.org]
 * eStore Subscription Discount v.1.1 [http://www.tipsandtricks-hq.com/wordpress-estore-plugin-complete-solution-to-sell-digital-products-from-your-wordpress-blog-securely-1059]
 * Genesis Connect for BuddyPress v.1.2.1 [http://www.studiopress.com/plugins/genesis-connect]
 * Genesis Simple Edits v.1.7.1 [http://www.studiopress.com/plugins/genesis-simple-edits]
 * Genesis Simple Hooks v.2.0.1 [http://www.studiopress.com/plugins/simple-hooks]
 * Google Analytics for WordPress v.4.3.3 [http://yoast.com/wordpress/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v420]
 * Gravity Forms v.1.7.13 [http://www.gravityforms.com]
 * Page-list v.4.2 [http://wordpress.org/extend/plugins/page-list/]
 * User Role Editor v.4.8 [http://role-editor.com]
 * W3 Total Cache v.0.9.3 [http://www.w3-edge.com/wordpress-plugins/w3-total-cache/]
 * Widget Context v.0.8.3 [http://wordpress.org/plugins/widget-context/]
 * WordPress SEO v.1.4.21 [http://yoast.com/wordpress/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin]
 * WP Affiliate Platform v.v5.6.3 [http://www.tipsandtricks-hq.com/wordpress-affiliate/]
 * WP eStore v.v6.9.7.8 [http://www.tipsandtricks-hq.com/?p=1059]
 * WP eMember v.v8.6.4 [http://www.tipsandtricks-hq.com/?p=1706]
------------------------ 
CURRENT THEME: Metric Child Theme v.1.0.1 

Original issue reported on code.google.com by vithefid...@gmail.com on 18 Dec 2013 at 3:35

Attachments:

GoogleCodeExporter commented 9 years ago
I just tried editing the _media.php file inside of the 
plugins/custom-content-type-manager/config

This also didn't change the ordering of the media display. :-/

Thanks,
Vi

Original comment by vithefid...@gmail.com on 18 Dec 2013 at 3:39

GoogleCodeExporter commented 9 years ago

Original comment by ever...@fireproofsocks.com on 18 Dec 2013 at 4:14

GoogleCodeExporter commented 9 years ago
in ajax-controllers/get_posts.php, comment out lines 83 and 84

//$args['orderby'] = 'ID';
//$args['order'] = 'ASC';

Original comment by ever...@fireproofsocks.com on 14 Feb 2014 at 8:32