papillonstudios Posted October 15, 2010 Share Posted October 15, 2010 I would like on my wordpress blog to show only one post at a time on the main page. Which i have but i would like user to be able to navigate through older posts. My my idea is that I have Newer and Older buttons at the bottom of the post(which I have) But the part that is getting me is telling wordpress that: 1. If there are no newer or older posts display a button with faded text and, 2. If one of the buttons is clicked, show the newer or older post(depending which button is clicked) in the same spot as the post that is currently displayed. Does anyone know how to do this or where for me to look? Quote Link to comment https://forums.phpfreaks.com/topic/215945-one-post-at-a-time-wordpress/ Share on other sites More sharing options...
papillonstudios Posted October 15, 2010 Author Share Posted October 15, 2010 for the older I have tried this: <a href="<?php get_previous_post() ?>"><img src="<?php bloginfo('template_url'); ?>/images/older.png" class="older" /> but that just returns my base url. I do have previous posts Quote Link to comment https://forums.phpfreaks.com/topic/215945-one-post-at-a-time-wordpress/#findComment-1122494 Share on other sites More sharing options...
papillonstudios Posted October 22, 2010 Author Share Posted October 22, 2010 anyone have any idea Quote Link to comment https://forums.phpfreaks.com/topic/215945-one-post-at-a-time-wordpress/#findComment-1125088 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.