Commit 823bba83 by Ashish Pal

marcellus pagenations tasks

parent b19281a6
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /marcellus/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /marcellus/index.php [L]
</IfModule>
# END WordPress
\ No newline at end of file
.mpagination{display: flex; justify-content: flex-end; width: 100%; margin-bottom: 20px; padding-right: 41px;}
.mpagination a{padding: 9px 14px; color: #000000; font-size: 11px; background-color: #ececec; border: solid 1px #f2f2f2;}
\ No newline at end of file
......@@ -4,7 +4,9 @@
*
*/
?>
<?php get_header(); ?>
<?php
wp_enqueue_style('pagination', get_template_directory_uri().'/css/pagination.css');
get_header(); ?>
<div id="full-content" class="media-coverage-page">
<section style="background: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;" class="media-banner-bg">
......@@ -37,7 +39,7 @@
</li>
<?php endwhile; ?>
</ul>
<div class="pagination">
<div class="mpagination">
<?php
echo paginate_links( array(
'base' => str_replace( 999999999, '%#%', esc_url(get_pagenum_link( 999999999 ))),
......
......@@ -4,7 +4,10 @@
*
*/
?>
<?php get_header(); ?>
<?php
wp_enqueue_style('pagination', get_template_directory_uri().'/css/pagination.css');
get_header();
?>
<div id="full-content" class="media-coverage-page">
<section style="background: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;" class="media-banner-bg">
<div class="container">
......@@ -16,7 +19,7 @@
<div class="row media-cover-content">
<ul class="clearfix">
<?php
$args = array('post_type' => 'media_coverage', 'meta_name' => 'tv','posts_per_page' => 2, 'orderby' => 'id', 'order' => 'DESC');
$args = array('post_type' => 'media_coverage', 'meta_name' => 'tv','posts_per_page' =>3, 'paged' => $paged, 'orderby' => 'id', 'order' => 'DESC');
$loop = new WP_Query($args);
while ($loop->have_posts()) : $loop->the_post();
?>
......@@ -36,7 +39,7 @@
</li>
<?php endwhile; ?>
</ul>
<div class="pagination">
<div class="mpagination">
<?php
echo paginate_links( array(
'base' => str_replace( 999999999, '%#%', esc_url(get_pagenum_link( 999999999 ))),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment