Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
current com naijashine ng needed themes

Current Naijashine.com.ng Themes Needed
#1
Pls..I need naijashine.com.ng themes
#2
download Naijakit.com WP theme ND d header ND bottom to ur text is the same thing
#3
Thanks....so...pls..can u tell me how naijashine.com.ng add previous and next to a single post...

I mean it split a post into pages
#4
(01-01-2018 03:36 PM)oluwakc Wrote: Thanks....so...pls..can u tell me how naijashine.com.ng add previous and next to a single post...

I mean it split a post into pages

I dnt get u recall
#5
Look at this....image

I mean the next and prev inside that post

Thumbnail(s)
       
#6
If you would prefer to add the code to your theme's page template instead:
<?php
$pagelist = get_pages('sort_column=menu_order&sort_order=asc');
$pages = array();
foreach ($pagelist as $page) {
$pages[] += $page->ID;
}
$current = array_search(get_the_ID(), $pages);
$prevID = $pages[$current-1];
$nextID = $pages[$current+1];
?>
<div class="navigation">
<?php if (!empty($prevID)) { ?>
<div class="alignleft">
<a href="<?php echo get_permalink($prevID); ?>"
title="<?php echo get_the_title($prevID); ?>">Previous</a>
</div>
<?php }
if (!empty($nextID)) { ?>
<div class="alignright">
<a href="<?php echo get_permalink($nextID); ?>" title="<?php echo get_the_title($nextID); ?>">Next</a>
</div>
<?php } ?>
</div><!-- .navigation -->
An other option for the code above would be to create a function like shown below:
<?php
function getPrevNext(){
$pagelist = get_pages('sort_column=menu_order&sort_order=asc');
$pages = array();
foreach ($pagelist as $page) {
$pages[] += $page->ID;
}
$current = array_search(get_the_ID(), $pages);
$prevID = $pages[$current-1];
$nextID = $pages[$current+1];
echo '<div class="navigation">';
if (!empty($prevID)) {
echo '<div class="alignleft">';
echo '<a href="';
echo get_permalink($prevID);
echo '"';
echo 'title="';
echo get_the_title($prevID); echo'">Previous</a>';
echo "</div>";
}
if (!empty($nextID)) {
echo '<div class="alignright">';
echo '<a href="';
echo get_permalink($nextID);
echo '"';
echo 'title="';
echo get_the_title($nextID);
echo'">Next</a>';
echo "</div>";
}
}
?>
#7
Thanks....

and under where will I put it
  


Possibly Related Threads...
ThreadAuthor Replies Views Last Post
  HELP: Script Urgently Needed hemelse 0 28 01-06-2018, 04:51 AM
Last Post: hemelse
  HELP: Entclass Blogger Template Needed Naijagistloaded 4 184 01-04-2018, 07:50 PM
Last Post: Anony
  Pls Jumia Themes Needed victor 2 82 12-25-2017, 10:44 PM
Last Post: Life
  Current Bangertech.ga Mobile Theme Needed greatben 5 122 12-21-2017, 01:06 AM
Last Post: cbanklee
  Please Admins Pls Rapnaija.com Theme Needed lifenaija 0 25 12-20-2017, 01:30 PM
Last Post: lifenaija
  Loadedng.com Theme Needed. greatben 7 149 12-18-2017, 02:43 PM
Last Post: cbanklee
  Pls Okay.ng Theme Needed joshiyemzy 1 117 12-15-2017, 01:03 AM
Last Post: Charis
  Pls Rapnaija.com Mobile Theme Needed gistking 0 46 12-10-2017, 04:43 PM
Last Post: gistking



Users browsing this thread:
1 Guest(s)

List of Users who browsed this thread: Ammar1, Anony, aristomloaded, cbanklee, chem, daweb, djultimate, Emmyloaded, greatben, haarun.haarun, hemelse, ImoleNaija, Jaybrain, jimohbawa9, Jobdan, Lalabase, Lilbob, major, mychylin, Naijafrosh, Naijagistloaded, naijanewsupdate, naijaoxford, oluwakc, patrick, Pedro, sholasunshine, sodiqsoda, surajboss, theyvid, Thonyb, Vickyfrank
Current Naijashine.com.ng Themes Needed00