Next and Prev Post Links

[norebro_social_networks icon_layout=”boxed”]

Find next and previous posts using current displayed post_id

$next = DB::table("posts")->where("id", ">", $post_id)->first();
$prev = DB::table("posts")->where("id", "<", $post_id)->orderBy('created_at', 'desc')->first();
https://www.kodeinfo.com
Comments to: Next and Prev Post Links

    Your email address will not be published. Required fields are marked *

    Attach images - Only PNG, JPG, JPEG and GIF are supported.

    Stay connected

    Categories

    Newsletter

    Tags

    Recent Comments

      Recent Posts

      Recent Comments

        Archives

        Categories

        Meta