• Resolved Dave

    (@csn123)


    I have set up Multipage and Yoast SEO on my blog. In Yoast I have set the post title to be:

    %%title%% %%page%% %%sep%% %%sitename%%

    In version 1.1.4 compatibility with WordPress SEO by Yoast was added with “the variable to show the subtitle is the standard %%page%%”.

    I have tested this but can’t get it to work. My site displays “POSTNAME – PAGE 1 OF 3 – SITETITLE” rather than “POSTNAME – SECTIONTITLE – SITETITLE”

    Am I right in thinking %%page%% should be outputting the section title rather than Page X of Y? Is there a way to get it to display the section title instead of Page X of Y?

    https://wordpress.org/plugins/sgr-nextpage-titles/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Sergio De Falco

    (@sgr33n)

    Hi,

    I cannot check this atm, sorry, but It’s possible that some update to the Yoast plugin has broke this.

    I will check this asap.

    Plugin Author Sergio De Falco

    (@sgr33n)

    So I checked.

    When I added this there was a WordPress SEO’s inconsistency, it counted the pages adding +1 (page 2 was page 3 for WP SEO, I also reported it to the release team), so I added +1 to every counting pages (as you can read on sgr-nextpage-titles.php comments). Now looks like they fixed this, so I’m releasing a temporary fixed version of Multipage Plugin, waiting for the major release.

    Thread Starter Dave

    (@csn123)

    @sergio – Thank you for looking into this. I’ve updated my plugin to the latest version (1.2.4) but the titles are still showing as “POSTNAME – PAGE 1 OF 3 – SITETITLE” rather than “POSTNAME – SECTIONTITLE – SITETITLE”

    Is there a way to get the section title to appear in the title tag instead of the page numbers?

    Thanks for your help!

    Plugin Author Sergio De Falco

    (@sgr33n)

    Uhm, it should work now… tested on a few installations. Which language are you using?

    Thread Starter Dave

    (@csn123)

    WP 4.2.1 in default American English, WordPress SEO 2.1.1 and Multipage Plugin 1.2.4.

    My SEO title structure is:

    %%title%% %%page%% %%sep%% %%sitename%%

    What setup are you testing it on, and what is your SEO title structure?

    Thanks for your help.

    Plugin Author Sergio De Falco

    (@sgr33n)

    It should work, I also tried with default WordPress Language… at this point I’d need to debug it

    Thread Starter Dave

    (@csn123)

    @sergio – Thanks for your continued help.

    Am I using the correct SEO title structure? Am I right in thinking the %%page%% section of the title is re-purposed the section title hook?

    I wonder if a dedicated command could be used instead, such as %%multipage%% ? Having not delved into the world of Yoast’s SEO code I don’t know how feasible this would be.

    Plugin Author Sergio De Falco

    (@sgr33n)

    If you see Page 1 of 3 it should work. Unfortunately WP SEO is not that flexible. Anyway as you can see e.g. here: http://www.gonk.it/guide/installare-server-web/2/ it works pretty good, I really don’t know how it doesn’t for your installation.

    Thread Starter Dave

    (@csn123)

    @sergio – Thanks for the link. I am very jealous it works for you!

    On digging around a bit further it seems the WordPress SEO option in SEO > Titles & Metas entitled “Enable force rewrite titles” messes up the titles for me. If I disable this my titles mess up and look awful, but as a glimmer of hope the titles display as:

    POSTNAME – SECTIONTITLE Of 3 – SITETITLE SITETITLE

    Enabling the option cleans the title up but removes the section title, taking it back to:

    POSTNAME – PAGE 1 OF 3 – SITETITLE

    If you “Enable force rewrite titles” does the same happen on your installation?

    Thread Starter Dave

    (@csn123)

    @sergio – I’ve cracked it!

    In sgr-nextpage-titles.php on line 133 it reads:

    add_filter( 'wp_title',array( &$this, 'enhance_title' ), 30 );

    When the force option is on WordPress SEO favours “wpseo_title” using different priority settings (100 instead of 30). Changing line 133 to read as follows fixes the problem:

    add_filter( 'wp_title',array( &$this, 'enhance_title' ), 30 );
    add_filter( 'wpseo_title',array( &$this, 'enhance_title' ), 100 );

    Thank you very much for your help with all of this.

    Dave

    Plugin Author Sergio De Falco

    (@sgr33n)

    Good 🙂 Infact I can see that forcing rewrite titles in WP SEO overrides Multipage title. Anyway the WP SEO option was there just to override any other plugin, so I will valuate if check for that option and according to it increase the priority, or leave all as it is, also because the default settings is to not forcing rewrite titles.

    Plugin Author Sergio De Falco

    (@sgr33n)

    So, decided: I will add an option to force rewrite titles too. Enabling this the priority will be 150.

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

The topic ‘WordPress SEO by Yoast compatibility issue’ is closed to new replies.