Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have Better WP Security and Yoast SEO, other than that no edits have been made to the .htaccess file. I disabled those two plugins as well but it didn’t fix the issue.
    Do you recommend any other solution and does this seem consistent with the issues you’ve been hearing about?

    Hi, Thanks for the great plugin.
    I changed the hierarchy setting and it didn’t resolve the issue which is odd because it did work on another site.
    Is wordpress not querying the post_type before the loop and has to be told (in the url) what post_type it needs to query?
    Also, before I tried to fix this I wasn’t getting a loop redirect, i was just getting the 404 error like other have been getting.

    I was able to get it working with this RewriteCond:

    RewriteCond %{QUERY_STRING} !^post_type=project
    RewriteRule ^work/projects/([a-zA-Z0-9-]+)([/]*)$ /work/projects/$1/?post_type=project [R,L]

    which stops the infinite loop.

    Hi, I’m having the same issue.

    I’ve discovered that appending:

    ?post_type=yourposttype

    to the end of the single post url shows the page.
    I haven’t had luck with appending this query string to the url via rewrites, but maybe this is useful.

    This is what my rewriteRule looks like. If anyone has suggestions that would be great.

    RewriteRule ^work/projects/([a-zA-Z0-9-]+)([/]*)$ /work/projects/$1/?post_type=project [R,L]

    Thanks

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