WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
Paged Format Subfix does appear on every page (4 posts)

  1. Zoker
    Member
    Posted 10 months ago #

    Hi,

    The Paged Format text does appear on every page, just when there are no more pages...

    Disabling the seo plugin does fix the problem, but is no real option for me.

    So please help me :)

    Thank you

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 10 months ago #

    Zoker,

    What is your website? Is this showing up on every page, or just the ones that have pagination? You can also work around this by deleting the Paged Format text.

  3. Art Project Group
    Member
    Posted 10 months ago #

    I'd the same problem, but I get a simple solution.

    How to fixed this bug?

    On aioseop_class.php you must search for this function:

    function paged_title( $title ) {
    		// the page number if paged
    		global $paged;
    		global $aioseop_options;
    		// simple tagging support
    		global $STagging;
    		$page = get_query_var( 'page' );
    		if ( $paged > $page ) $page = $paged;
    		if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page ) {
    			$part = $this->internationalize( $aioseop_options['aiosp_paged_format'] );
    			if ( isset( $part ) || !empty( $part ) ) {
    				$part = " " . trim( $part );
    				$part = str_replace( '%page%', $page, $part );
    				$this->log( "paged_title() [$title] [$part]" );
    				$title .= $part;
    			}
    		}
    		return $title;
    	}

    And place this one:

    function paged_title( $title ) {
    		// the page number if paged
    		global $paged;
    		global $aioseop_options;
    		// simple tagging support
    		global $STagging;
    		$page = get_query_var( 'page' );
    		if ( $paged > $page ) $page = $paged;
    		if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page > 1 ) {
    			$part = $this->internationalize( $aioseop_options['aiosp_paged_format'] );
    			if ( isset( $part ) || !empty( $part ) ) {
    				$part = " " . trim( $part );
    				$part = str_replace( '%page%', $page, $part );
    				$this->log( "paged_title() [$title] [$part]" );
    				$title .= $part;
    			}
    		}
    		return $title;
    	}

    The bug is the line 1439:

    Original: if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page ) {
    Fixed: if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page > 1 ) {

    And that's all.

    Please fix it on the next version.

    Thanks a lot for your great job.

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  4. Peter Baylies
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks Emilio, that is correct; this will be fixed in the next version.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.