Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posts are available by different URLs #35

Closed
vdmktv opened this issue Feb 17, 2018 · 2 comments
Closed

Posts are available by different URLs #35

vdmktv opened this issue Feb 17, 2018 · 2 comments

Comments

@vdmktv
Copy link

vdmktv commented Feb 17, 2018

Hi,

For example, posts from your website are available by URLs with sections and without them:
https://archetyped.com/know/cornerstone-using-custom-field-data-in-wordpress/
https://archetyped.com/cornerstone-using-custom-field-data-in-wordpress/

I'm also having this issue on my site. How to fix it?

@archetyped
Copy link
Owner

Hi, the reason for this is that WordPress only looks at the slug (e.g. cornerstone-using-custom-field-data-in-wordpress) when determining what post to load, so the section or other path details are not required for the correct post to be loaded.

However, with Cornerstone installed, using WordPress' built-in functions such as the_permalink(), etc. should generate the correct section-based URL for a post. If this is not happening, please provide some details regarding how you are generating URLs and I would be glad to take a look.

@archetyped
Copy link
Owner

This ticket has been closed due to inactivity. If you are still experiencing an issue with Cornerstone, please provide the previously-requested details and I would be glad to reopen the ticket and take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants