Sindbad~EG File Manager
<?php
/*
* Security : blocking direct access
* Source : http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");
function mwp_category_more_6(){
global $post;
$category = esc_attr($_GET['category']);
$post_per_page = esc_attr($_GET['post_per_page']);
$gc_limit_title = esc_attr($_GET['gc_limit_title']);
$paged = esc_attr($_GET['paged'] + 1);
$param = array(
'post_type' => 'post',
'post_status' => 'publish',
'cat' => $category,
'posts_per_page' => $post_per_page,
'paged' => $paged,
);
$mwp_category_more = new WP_Query($param);
$output = '';
?>
<div class="content">
<div class="section-articles">
<?php while ($mwp_category_more->have_posts()) : $mwp_category_more->the_post(); ?>
<li class="sixth hentry">
<div class="thumbnail">
<a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title_attribute(); ?>">
<?php mwp_thumb_size('mwp-small', 280, 160, 'img-responsive'); ?>
<span class="duration"><?php echo number_photo_gallery($post->ID); ?></span>
</a>
</div>
<span class="date"><?php the_time('l j F Y');?></span>
<h2 class="entry-title">
<a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title_attribute(); ?>">
<?php echo short_title(get_the_title(), $gc_limit_title); ?>
</a>
</h2>
<?php mwp_meta_hidden(); ?>
</li>
<?php endwhile; ?>
</div>
</div>
<?php
wp_reset_postdata();
die($output);
}
add_action( MWP_AJAX_PREFIX . '_mwp_category_more_6', 'mwp_category_more_6');
add_action( MWP_AJAX_PREFIX . '_nopriv_mwp_category_more_6', 'mwp_category_more_6');
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists