Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION i18n pagination
#1
Good afternoon!
Not strong in php, could not find the answer.
There is a pagination code:
Code:
<?php  
$slug = (string) return_page_slug();
$bc = return_i18n_breadcrumbs($slug);
$level = count($bc) - 1;
$nav = return_i18n_menu_data($slug,$level,$level,I18N_SHOW_PAGES);
$i = 0;
while ($i < count($nav) && $nav[$i]['url'] != $slug) $i++;
if ($i > 0) {
    echo '<a href="'.find_i18n_url($nav[$i-1]['url'],$nav[$i-1]['parent']).
             '">&lt;&lt; '.$nav[$i-1]['title'].'</a>&nbsp;&nbsp;&nbsp;';
}
if ($i+1 < count($nav)) {
  echo '<a href="'.find_i18n_url($nav[$i+1]['url'],$nav[$i+1]['parent']).
       '">'.$nav[$i+1]['title'].' &gt;&gt;</a>';
}
?>
And there is a field from i18n Special Pages. It displays a link to an image

Code:
<?php get_special_field('images','-',false); ?>
Field created with type picture or link.

How can I get a picture from the next or last post?
This is a preview. I don’t understand.

How can this be realized?
Reply




Users browsing this thread: 1 Guest(s)