Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to Echo the page number in the page title?

  • Avatar of nanchante2
    nanchante2
    Member

    @nanchante2

    Hi,

    I need to be able to echo the page number in the meta title. How can I do this please?

    eg I am on page 3 of the list of forum topics in a group.

    I want the page meta title to say “Example Group Forum, Page 2″ etc…

    Vital for SEO.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of nanchante2
    nanchante2
    Member

    @nanchante2

    Bumping this as it got buried very quickly… anyone know how to do this?

    It should be a simple thing I’m sure, but how?

    Avatar of meg@info
    meg@info
    Participant

    @megainfo

    bp_groups_pagination_count()

    Avatar of nanchante2
    nanchante2
    Member

    @nanchante2

    thanks i tired that, but when i place the following as my title:

    <code><title><?php wp_title( ‘|’, true, ‘right’ ); bloginfo( ‘name’ ); ?> <?php bp_groups_pagination_count() ?></title></code>

    i get this output:

    <title> News and Updates Forum Viewing group 1 to 0 (of groups)</title>

    It should say:

    <title> News and Updates Forum Page 12</title>

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.