You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially I didn't think it was necessary to support requests for a particular post ID but I discovered that it's necessary to detect when parameters are being passed to the URL since this affects the processing.
The requirement is to detect query params to deal with them differently
if we deactivate WooCommerce on the home page then the link changes from https://denisethatcher.com/product/denise-thatcher-invades-britain/ to https://denisethatcher.com/?p=39
Visiting this link leads to a 404
Aside: The [add_to_cart] shortcode doesn't work either but that's a separate issue to be addressed.
Possible workaround
Register the product Custom Post Type using oik-types
Possible solution
Add support for query parm detection. If the query parm is p=nn or page=nnn or even preview=nnn then don't treat this is a request for the home URL but find the URL using the ID.
The text was updated successfully, but these errors were encountered:
bobbingwide
changed the title
Cater for non-permalinks URLs eg https://example.com/?p=29
Cater for non-permalinks URLs eg https://example.com/?p=39Oct 28, 2021
There's also a problem when the request is like https://ebps.co.uk/?post_type=tribe_events
This gets treated as https://ebps.co.uk/
Workaround: Change the URL to https://ebps.co.uk/events
Other menu items may not be processed due to taxonomies not being registered either.
Workaround
Initially I didn't think it was necessary to support requests for a particular post ID but I discovered that it's necessary to detect when parameters are being passed to the URL since this affects the processing.
The requirement is to detect query params to deal with them differently
Example scenario
https://denisethatcher.com/product/denise-thatcher-invades-britain/
tohttps://denisethatcher.com/?p=39
Aside: The
[add_to_cart]
shortcode doesn't work either but that's a separate issue to be addressed.Possible workaround
product
Custom Post Type using oik-typesPossible solution
p=nn
orpage=nnn
or evenpreview=nnn
then don't treat this is a request for the home URL but find the URL using the ID.The text was updated successfully, but these errors were encountered: