Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to Echo the page number in the page title?

  • 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)
  • 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?


    meg@info
    Participant

    @megainfo

    bp_groups_pagination_count()

    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)
  • The topic ‘How to Echo the page number in the page title?’ is closed to new replies.
Skip to toolbar