FarukArig adlı üyeden alıntı: mesajı görüntüle
iki kod arasında ki tek fark fonksiyon isimleri değil mi ? öyleyse fonksiyonlarınızı kontrol etmelisiniz.
<?php
//POST
function postChange ($Url) {
if(array_key_exists('amp', $_GET)){
echo str_replace("http://", "https://www.example.com/", get_permalink());
}else{
echo the_permalink();
}
}
//PAGE
function homeChange ($Url) {
if(array_key_exists('amp', $_GET)){
echo str_replace("http://", "https://www.example.com/", get_permalink());
}else{
echo the_permalink();
}
}
Fonksiyonlarda sorun göremedim hocam