This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 7 months ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘PErmalink Error’ is closed to new replies.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › PErmalink Error
This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 7 months ago.
in the results there is a permalink error, every permalink have a ”/0/”
should be http://sitename.com/post
now i have http://sitename.com/0/post
so when i click on the result i have a 404…
this appened only in frontend, in the search template preview everityng is ok
soved adding
add_filter( ‘asp_results’, ‘asp_try_fixing_url’, 10, 1 );
function asp_try_fixing_url( $results ) {
foreach ($results as $k => &$v) {
$v->link = str_replace(‘/0/’, ‘/’, $v->link);
}
return $results;
}
in function.php
thanks
The topic ‘PErmalink Error’ is closed to new replies.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |