"Older Entries" Link Outside of WP Directory
-
Hi there…I am running a web site that has a list of WP blog posts outside a WP template. Basically, I took code from the index template to allow the list of posts to appear on a page outside the WP framework on the page.
It works great, except the “older posts” link at the bottom of the list points to a page that doesn’t really exist and/or contain any older list of posts.
Here’s the line of code currently used:
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
As a result, the link goes to this URL: https://abcdefglhik.com/content/news.php/page/2/
/content/ is the WP install area, but news.php is the page where this list is appearing, which is outside of the /content/ directory.
Can anyone help?
- The topic ‘"Older Entries" Link Outside of WP Directory’ is closed to new replies.