• I am trying to figure out how to have pagination or “prevous” and “next” work on my sidebar with my get_pages function.

    Here’s my code…

    <?php
    $pages = get_pages (‘child_of=1828&parent=1828’);
    foreach ($pages as $page)
    {
    $content = $page->post_content;
    if(!$content)
    continue;
    if($count >= 15)
    break;
    $count++;
    $content = apply_filters(‘the_content’, $content);
    ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Paginate get_pages function’ is closed to new replies.