{"id":5647,"date":"2005-04-07T18:30:50","date_gmt":"2005-04-07T17:30:50","guid":{"rendered":"http:\/\/www.grayblog.co.uk\/index.php\/?p=5647"},"modified":"2005-04-07T18:30:50","modified_gmt":"2005-04-07T17:30:50","slug":"php-question","status":"publish","type":"post","link":"http:\/\/grayblog.co.uk\/index.php\/2005\/04\/07\/php-question\/","title":{"rendered":"PHP question"},"content":{"rendered":"<p>I&#8217;m stumped. I want to put &quot;next page&quot; and &quot;previous page&quot; links at the foot of each page. I know I should be using <code>posts_nav_link<\/code>. Where should I put it? My current code looks like this:<br \/>\n<code>[the main body of the grayblog page]<br \/>\n&lt;\/div&gt;<\/p>\n<p>< ?php } } else { \/\/ end foreach, end if any posts ?><\/p>\n<p>Sorry, no posts matched your criteria.<\/p>\n<p>< ?php } ?><\/p>\n<p>&lt;div class=&quot;sidebar&quot;&gt;<br \/>\n[the sidebar part of the page]<\/code><br \/>\nHelp?<\/p>\n<p>Incidentally, I&#8217;ve turned off the anti-spam plugin that I was using because it was generating false positives. Fingers crossed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m stumped. I want to put &quot;next page&quot; and &quot;previous page&quot; links at the foot of each page. I know I should be using posts_nav_link. Where should I put it? My current code looks like this: [the main body of the grayblog page] &lt;\/div&gt; < ?php } } else { \/\/ end foreach, end if [&hellip;]\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-5647","post","type-post","status-publish","format-standard","hentry","category-grayblogcouk"],"_links":{"self":[{"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/5647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=5647"}],"version-history":[{"count":0,"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/5647\/revisions"}],"wp:attachment":[{"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=5647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=5647"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/grayblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=5647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}