overseastudent
Member
Posted 1 year ago #
I have a search.php program which taking care search result.
The statement of "<?php the_permalink() ?>" always returns an error string value,
http://overseastudent.ca/%3Fp%3D5257
rather than
http://overseastudent.ca/?p=5257
It was fine before. Can some experts tell me what is going on?
Thanks in advance.
overseastudent
Member
Posted 1 year ago #
There is such thing urldecode() ?
overseastudent
Member
Posted 1 year ago #
The question is not challenge enough? why it is ignored. I am waiting online to see the answers...
overseastudent
Member
Posted 1 year ago #
I tried workaround solutions, non of them works, the string is unreplaceable, why?
1)
<?php
$source = array("%3F", "%3D");
$target = array("?", "=");
$content = urldecode(str_replace($source, $target, urlencode(the_permalink())));
echo $content;
?>
" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <?php the_title(); ?> </h2>
2)
href="<?php str_replace("%3Fp%3D", "?p=", the_permalink()); ?>" rel="bookmark" title="<?php the_title(); ?>"
overseastudent
Member
Posted 1 year ago #
looking for straight answer, where is my hero?