Skip to:
Content
Pages
Categories
Search
Top
Bottom

'Before' pagination?

  • @anointed

    Participant

    How do I properly add the word ‘Pages:’ before the pagination loops?

    Normally I apply a ‘before’ argument to functions like this, but it’s not working. My best guess is that ‘before’ or ‘after’ are not valid arguments for the bbpress pagination. I just need a simple way of making sure that the before text is only going to show up if there is indeed pagination links to display.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @anointed

    Participant

    bumping it up

    @7i7griffin

    Member

    In the Standalone I jus use this <?php bb_latest_topics_pages(); ?> for what you wanted :) Maybe you can use it by changing bb_ to bbp_ like something else that it worked!

    @anointed

    Participant

    Maybe this will explain it a little better:

    <?php _e( 'Pages: ', 'wptumble' ); ?> <?php bbp_forum_pagination_links(); ?>

    That basically adds ‘Pages:’ right before the page links. The ‘downside’ is that ‘Pages:’ is output to the browser even if there are no links available.

    what I am trying to do is something like:

    <?php bbp_forum_pagination_links('before_links' => 'Pages:'); ?>

    @aakash_tablet

    Member

    @macpresss

    Participant

    I’ve got almost the same problem as @Anointed here, no before and after option..

    Sorry to say but this is typically WordPress development they output Page navigations in < .a href's.. just one after the other and you can only hope there is enough classes to list and style them properly.

    I found this problem with WordPress the first time when i tried to apply Twitter's Bootstrap Page navigation to a WordPress theme.
    This is how a page-navigation should look like anno 2012 in default HTML. http://twitter.github.com/bootstrap/components.html#pagination

    not like this..

            <a href="#">page 1</a>
            <a href="#">page 2</a>
            <a href="#">page 3</a>
    

    • This reply was modified 12 years, 2 months ago by Shmoo.
    • This reply was modified 12 years, 2 months ago by Shmoo.
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar