Forum Replies Created

Viewing 3 replies - 31 through 33 (of 33 total)
  • Thread Starter l7world.com

    (@l7worldcom)

    Thanks for help me! You’re welcome me.

    Figured it out, I was having trouble with array and if statements meant to keep navigation off parent which is placeholder. Also made first and last inactive when those pages are loaded.

    Here’s result and code maybe it’ll save someone some time

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <a href="https://l7world.com/webcomics/smurfmen">https://l7world.com/webcomics/smurfmen</a>
    "First | Previous | Next | Last"
    
    <?php if ( is_page (218) )  {
    } elseif (!previous_post_link_plus( array(
    'order_by' => 'post_date',
    'order_2nd' => 'post_date',
    'meta_key' => '',
    'loop' => false,
    'end_page' => 'fixed',
    'thumb' => false,
    'max_length' => 0,
    'format' => '%link | ',
    'link' => 'First',
    'date_format' => '',
    'tooltip' => '%title',
    'in_same_parent' => false,
    'in_same_author' => false,
    'in_same_meta' => 'webcomics',
    'ex_pages' => '',
    'in_pages' => '',
    'before' => '',
    'after' => '',
    'num_results' => 1,
    'return' => ''
    ) ) ) {
    echo 'First | '; } ; ?>
    <?php if ( is_page (218) )  {
    } elseif (!previous_post_link_plus( array(
    'order_by' => 'post_date',
    'order_2nd' => 'post_date',
    'meta_key' => '',
    'loop' => false,
    'end_page' => false,
    'thumb' => false,
    'max_length' => 0,
    'format' => '%link | ',
    'link' => 'Previous',
    'date_format' => '',
    'tooltip' => '%title',
    'in_same_parent' => false,
    'in_same_author' => false,
    'in_same_meta' => 'webcomics',
    'ex_pages' => '',
    'in_pages' => '',
    'before' => '',
    'after' => '',
    'num_results' => 1,
    'return' => ''
    ) ) ) {
    echo 'Previous | '; } ; ?>
    <?php if ( is_page (218) )  {
    } elseif (!next_post_link_plus( array(
    'order_by' => 'post_date',
    'order_2nd' => 'post_date',
    'meta_key' => '',
    'loop' => false,
    'end_page' => false,
    'thumb' => false,
    'max_length' => 0,
    'format' => '%link | ',
    'link' => 'Next',
    'date_format' => '',
    'tooltip' => '%title',
    'in_same_parent' => false,
    'in_same_author' => false,
    'in_same_meta' => 'webcomics',
    'ex_pages' => '',
    'in_pages' => '',
    'before' => '',
    'after' => '',
    'num_results' => 1,
    'return' => ''
    ) ) ) {
    echo 'Next | '; } ; ?>
    <?php if ( is_page (218) )  {
    } elseif (!next_post_link_plus( array(
    'order_by' => 'post_date',
    'order_2nd' => 'post_date',
    'meta_key' => '',
    'loop' => false,
    'end_page' => 'fixed',
    'thumb' => false,
    'max_length' => 0,
    'format' => '%link | ',
    'link' => 'Last',
    'date_format' => '',
    'tooltip' => '%title',
    'in_same_parent' => false,
    'in_same_author' => false,
    'in_same_meta' => 'webcomics',
    'ex_pages' => '',
    'in_pages' => '',
    'before' => '',
    'after' => '',
    'num_results' => 1,
    'return' => ''
    ) ) ) {
    echo 'Last '; } ; ?>
    Thread Starter l7world.com

    (@l7worldcom)

    Okay I figured out 2nd part:
    ‘format’ => ‘%link » | ‘,
    (had vertical bar outside quote)

    Still wanna make the previous and next links mandatory for consistency.

    l7world.com

    (@l7worldcom)

    I had the same problem on 1 of my sites but not the other (different hosts).

    After waiting a couple minutes and trying it again it worked.

    I’d guess wordpress is just having problems accessing your DB, just try again later.

Viewing 3 replies - 31 through 33 (of 33 total)