Jump to content


Photo

Adding another postnav to the bottom of a post?


This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1 smilelee

smilelee

    Member

  • Members
  • 15 posts

Posted 04 September 2011 - 12:46 AM

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.heavens...12/young-woman/ http://iron.heavense.../10/tom-marcus/ http://many.heavense...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...f-a-post#Item_3

#2 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts

Posted 04 September 2011 - 03:24 AM

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'=> __('<p class="content-pagination"><span class="cp-desc">pages:</span>', 'pagelines'), 'after' => '</p>', 'pagelink' => '<span class="cp-num">%</span>'));

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.

#3 smilelee

smilelee

    Member

  • Members
  • 15 posts

Posted 18 September 2011 - 10:39 PM

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.

#4 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts

Posted 19 September 2011 - 12:50 AM

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

#5 smilelee

smilelee

    Member

  • Members
  • 15 posts

Posted 19 September 2011 - 06:11 AM

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

#6 Danny

Danny

    Is Awesome!

  • Moderators
  • 16982 posts

Posted 19 September 2011 - 07:57 AM

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.

#7 mailbox507

mailbox507

    Newbie

  • Members
  • 1 posts

Posted 17 August 2012 - 08:14 PM

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.