-
AuthorPosts
-
August 23, 2014 at 12:30 am #308117
Hey guys,
i need some help.
currently I don’t have pagination on the bottom of the topic just on top top and would like to add this to the bottom as well.
http://gyazo.com/f0644a8910293d234e277d74341d498dhow should i do this?
thanks in advanceAugust 25, 2014 at 7:10 am #308644Hi,
Can you post the link to your website please?
Regards,
JosueAugust 25, 2014 at 10:26 am #308712This reply has been marked as private.August 25, 2014 at 10:58 am #308734Hi!
Please go to Appearance > Editor and open Functions.php file and add following code
add_action( 'bbp_template_after_single_topic','bbp_bottom_pagination' ); function bbp_bottom_pagination() { $output = bbp_get_template_part( 'pagination', 'replies' ); return $output; }
Best regards,
YigitAugust 26, 2014 at 5:10 am #309109Hi Yigit!
Added this to wp-content/theme/enfold/functions.php and it either doesn’t do a thing OR got a server error and the site didn’t loaded at all…
really put in some effort to understand how tihs works and found
wp-content/plugins/bbpress/templates/default/bbpress/content-single-topic.phpunderstand that
<?php bbp_get_template_part( 'pagination', 'replies' ); ?> <?php bbp_get_template_part( 'loop', 'replies' ); ?> <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
makes pagination, then replies, and pagination, and if i write a standard echo “where is my pagination bro?” he displays it but not the page links…
sorry that i’m a noob but i’m ready to learn…
August 26, 2014 at 11:56 am #309263Hi!
Do you mind creating a temporary admin login and posting it here privately? I tried the code before posting and it works fine on my local installation – http://i.imgur.com/NXYjW5o.png
Cheers!
YigitAugust 28, 2014 at 4:44 am #310189This reply has been marked as private.August 28, 2014 at 10:19 am #310320Hey!
I cannot make changes on Functions.php file from WordPress backend. Please change permissions
Cheers!
YigitAugust 28, 2014 at 2:49 pm #310430This reply has been marked as private.August 28, 2014 at 2:53 pm #310435Hey!
So sorry, site went blank again when i added the code. Can you please remove it via FTP?
Regards,
YigitAugust 28, 2014 at 2:57 pm #310439which line?
August 28, 2014 at 2:58 pm #310440ok found it, had the same issue as i was trying!
August 28, 2014 at 2:58 pm #310441Hi!
It is the same code i posted earlier
add_action( 'bbp_template_after_single_topic','bbp_bottom_pagination' ); function bbp_bottom_pagination() { $output = bbp_get_template_part( 'pagination', 'replies' ); return $output; }
Thought there may be punctional error so i made sure there was not, but site went blank anyway
Best regards,
YigitAugust 28, 2014 at 3:00 pm #310442also, now is the “view first unread post” feature is missing…
August 28, 2014 at 3:00 pm #310444Hi!
Can you please update Enfold to the latest version 2.9.2 firstly then we can try the code again? It works totally fine on my local installation with Enfold 2.9.2
Regards,
YigitAugust 28, 2014 at 3:05 pm #310446“also, now is the “view first unread post” feature is missing…”
any guess about this? it was fine in the morning
August 28, 2014 at 3:24 pm #310463Hey!
I have not changed any settings. Please try contacting plugin author as they should have better insight
Best regards,
YigitAugust 28, 2014 at 4:05 pm #310491ok, last reply is fixed now
btw, updated enfold on the test environment, inserted the code but it still don’t shows the page links, but , at least it doesnt kill the site :-)August 28, 2014 at 4:07 pm #310494Hey!
Can you try deactivating all plugins except for bbPress on your test environment and check if that helps? :)
Best regards,
YigitSeptember 24, 2014 at 6:17 am #324057Hey Yigit!
finally was able to solve the problem!
Guess what bottom pagination was always there but somehow it was in the same place as the top pagination. I just couldn’t fiuger out why…
but pasted the code after the loop replies and changed his style to like bbp-bottom-pagination and it came to the right place…bests,
Robert -
AuthorPosts
- The topic ‘navigation on the bottom for topic replies’ is closed to new replies.