On the archive page, I would like to list the most recent files first, and the oldest at the bottom/end. Is there a way to specify this? Thank you for your time and help.
Also, is there a way to do a bulk import of many PDF files without using WP-CLI? Thanks.
Also, is there a way to do a bulk import of many PDF files without using WP-CLI? Thanks.
Subject: Support request, plugin: pdf-light-viewer (time: 15.06.2016 20:58:23)
Server Info
- os -> Linux host137.hostmonster.com 3.12.52-20160119.106.ELK6.x86_64 #1 SMP Tue Jan 19 16:53:32 CST 2016 x86_64
- php -> 5.6.17
- mysql -> 5.5.42-37.1-log
- wordpress -> 4.5.2
Theme
Bethlehem, 1.2.1, http://demo.transvelo.in/wp/bethlehem/
from Transvelo, http://transvelo.comPlugins
- Redux Framework, 3.6.0.2, http://wordpress.org/plugins/redux-framework
- Akismet, 3.1.11, https://akismet.com/
- Bethlehem Extensions, 1.2.1, http://demo.transvelo.in/wp/bethlehem/
- Contact Form 7, 4.4.2, http://contactform7.com/
- Envato Market, 1.0.0-RC2, http://envato.github.io/wp-envato-market/
- Give – Donation Plugin, 1.4.5, https://givewp.com
- iframe, 4.3, http://wordpress.org/plugins/iframe/
- Jetpack by WordPress.com, 4.0.3, http://jetpack.com
- WPBakery Visual Composer, 4.11.2.1, http://vc.wpbakery.com
- Maintenance Mode, 1.4.3, https://github.com/lukasjuhas/lj-maintenance-mode
- Our Team, 1.4.1, http://woothemes.com/
- PDF Light Viewer Plugin Pro, 0.1.0, http://pdf-light-viewer.wp.teamlead.pw/pro/
- PDF Light Viewer Plugin, 1.3.0, http://pdf-light-viewer.wp.teamlead.pw/
- Regenerate Thumbnails, 2.2.6, http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/
- Slider Revolution, 5.2.5.3, http://revolution.themepunch.com/
- Testimonials, 1.5.4, http://woothemes.com/
- The Events Calendar, 4.2,
- WooCommerce, 2.6.0, https://www.woothemes.com/woocommerce/
- WP Tiles, 1.1.2, http://wp-tiles.com/
1 Answers
Hello Mark,
Is there a way to specify this?
For now archive page should already work as you need it. Default order is descending on field post_date. However if you need to change it somehow you could use the following code snippet in your theme’s functions.php:
function pdf_lv_archive_change_orderby( $orderby ) {
if (is_post_type_archive(array(PdfLightViewer_PdfController::$type))) {
return 'post_date ASC';
}
else {
return $orderby;
}
}
add_filter( 'posts_orderby', 'pdf_lv_archive_change_orderby' );
Also, is there a way to do a bulk import of many PDF files without using WP-CLI?
Unfortunately, CLI is the only possibility for now.
Please login or Register to submit your answer