Jump to content
Sign in to follow this  
smilelee

Adding another postnav to the bottom of a post?

Recommended Posts

smilelee

I didn't format my question correctly 1st time, so hear we go again. Let's say I'm writing novels, like these: http://craft.heavensentgaming.com/2011/08/12/young-woman/ http://iron.heavensentgaming.com/2011/08/10/tom-marcus/ http://many.heavensentgaming.com/2011/03/01/hello-world/ It's pretty annoying having to scroll up after reading a post. Is there a way to have a duplicate postnav at the bottom of a post. I don't need breadcrumbs.The pagenav is the "next post" and "previous post" buttons. So it'd be like this: pagenav (previous and next) content pagenav (previous and next) share bar comments Older post: http://www.pagelines.com/forum/discussion/13001/any-way-to-add-another-postnav-to-the-bottom-of-a-post#Item_3

Share this post


Link to post
Share on other sites
Jenny

I only know enough PHP to get myself in trouble but in template.postloop.php (in the PlatformPro editor), this line looks like the one you're looking for.

	// Content pagination
	if( is_single() || is_page() ) wp_link_pages(array('before'=> __('
pages:', 'pagelines'), 'after' => '', 'pagelink' => '%'));
	[/code]

Now hopefully someone else who has more experience with the template files can provide confirmation, but I believe you can just copy the file from the PlatformPro folder to the PlatformBase folder and then duplicate the file at the end of the loop. That should do what you want.


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
smilelee

I tried messing with that, but it ended up glitching my site up. So that might be it, but I couldn't figure it out lol.

Share this post


Link to post
Share on other sites
Jenny

See.. you know enough PHP to get yourself in trouble too. :) Hopefully someone else can help!


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
smilelee

Yep, thanks for trying to help. Let's hope someone can help with this though.

Share this post


Link to post
Share on other sites
Danny

Hi Smilelee, You could try duplicating the Post Navigation section. To do this, simply follow the instructions below. 1. First thing to do is search for "// ABOUT HOOKS --------//" in your functions.php file. The add this: pagelines_register_section('PageLinesPostNav2','postnav2', null, array('child' => true) ); Above it, so it looks something like this: pagelines_register_section('PageLinesPostNav2','postnav2', null, array('child' => true) ); // ABOUT HOOKS --------// 2. Then copy and paste this code: http://pastebin.com/K5yCiA8y To your favourite text editor and save, name the file this "section.postnav2.php". 3. Using FTP upload the section.postnav2.php file to "wp-content/themes/platformbase/sections". 4. Now go to PlatformPro Settings >> Template Setup >> Single Post Content Area Template and you should see a new section (on the right hand side Available/Disabled sections) called Post Navigation2, simply drag and drop this new section to your preferred location and hit save. Refresh your page and you should have two post navigations. Hope that helps.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mailbox507

you have got to be kidding me. for all the crazy and incredible things pagelines can do i've been searching for hours on how to simply add a freaking comments link to the bottom of a post and each result is "install this" and then "customize that". WTF!!! There are so many people looking for this function. Why not just add a freaking box to the options page to allow for the comments link under the post? unbelievable.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×