Re: bbpress front-page pagination Items per page :: Reply by master

von Joern am 14. Okt. 2009 | Keine Kommentare

get the title tag in header.php display the current page
switching pages works well with the plugin explained above, but the title of the forum will always just show the forums name.
On page two however we have another URL and different topics, so the title should reflect this.
In a similar way as in WordPress you can easily add ‚page X‘ to the title if it is paged and if you are on front-page.
In header.php you find:

<title><?php bb_title() ?></title>
by adding ‚if (is_front() && $page>1)‘ you can echo the page number if it is paged. It should look like this:

<title><?php bb_title() ?><?php if (is_front() && $page>1) {echo(" page $page" ); } ?></title>
Now, if you switch to page 2 it will display ‚your forums name page 2‘
you find me on Google+, Twitter and Facebook

(von: master)

Hier noch 1 weitere Ergebnisse dieses Threads:

bbpress front-page pagination Items per page

14. Okt. 2009 (von: master)

It took a while to find out that bbPress doesn't use pagination on the frontpage.Having more topics than what is set in admin under 'Items per page:' will make the older ones disappear.It took a while to find the…


Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: