GithubHelp home page GithubHelp logo

Comments (3)

sybrew avatar sybrew commented on May 31, 2024

Hi Dũng Nguyễn,

Is this happening on only the blog entries as categories, or as well as the singular post types (post/page)?

The pull request only features a change in the archive path, and I believe this should be handled elsewhere.
But if it's only faulty on archives, then I believe we are facing another issue. I also see you're using site_url() rather than home_url(), so I really need more information on this matter.

I also believe the change should be added here:

$parsed_url = wp_parse_url( get_option( 'home' ) );
return isset( $parsed_url['host'] ) ? esc_html( $parsed_url['host'] ) : '';

Do keep me informed. Thanks!

from the-seo-framework.

sybrew avatar sybrew commented on May 31, 2024

See patch: 936db07

Specifically these lines:

//* Add plausible domain subdirectories.
$url = trailingslashit( get_option( 'home' ) ) . ltrim( $path, ' \\/' );
$path = $this->set_url_scheme( $url, 'relative' );

//* Add plausible domain subdirectories.
$url = trailingslashit( get_option( 'home' ) ) . ltrim( $path, ' \\/' );
$path = $this->set_url_scheme( $url, 'relative' );

It's untested, but should yield what you're aiming for. Feel free to test it out. This makes all path generation functions yield the same results.

Caution: please note that the 2.7.0 version (currently in Alpha) transfers term data to the WordPress 4.4 system. This needs more elaborate testing prior to be used on production websites.

from the-seo-framework.

nhymxu avatar nhymxu commented on May 31, 2024

I see Google Webmaster notice with /category/ and /tag/
post/page work well.

Yes, after using your patch. Category/tag now work well.

Thanks you.

from the-seo-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.