-
AuthorPosts
-
February 7, 2022 at 12:00 pm #1339310
Hallo,
ich habe beim Hoster einen neuen Account erhalten um PHP ab Version 7.4 zu verwenden. Dort wurde mir ein testbereich eingerichtet und die vorhandene, funktionsfähige Seite dorthin kopiert. Allerdings erscheint nun eine Fehlermeldung im Kopfbereich der Seite:', '', $heading); $heading = preg_replace( "/href='.*?'/", '', $heading); $current_post['title'] = $heading; } return $current_post; }
Woher kann dieser Fehler kommen?
February 7, 2022 at 3:35 pm #1339387Hey sancho22,
Could you post a link to where we can see the problem you are having problem?
Best regards,
RikardFebruary 7, 2022 at 3:35 pm #1339388Hey sancho22,
Could you post a link to where we can see the problem you are having problem?
Best regards,
RikardFebruary 7, 2022 at 3:43 pm #1339393This reply has been marked as private.February 8, 2022 at 5:00 am #1339491Hi,
Thanks for that. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardFebruary 9, 2022 at 12:50 pm #1339788This reply has been marked as private.February 10, 2022 at 10:33 am #1339931Hi,
Thanks for that, the login details are not working though. Please check and verify.
Best regards,
RikardFebruary 10, 2022 at 4:54 pm #1340010This reply has been marked as private.February 11, 2022 at 9:28 am #1340107Hi,
Thanks for that. This code in your functions.php file seems to be generating that:
add_filter( 'post-format-standard', 'my_avia_default_title_filter', 20, 1 ); function my_avia_default_title_filter($current_post) { if( ( ! empty( $current_post['title'] ) ) && is_singular() ) { $heading = $current_post['title']; $heading = str_replace( '<a ', '<div ', $heading); $heading = str_replace( '</a>', '</div>', $heading); $heading = preg_replace( "/href='.*?'/", '', $heading); $current_post['title'] = $heading; } return $current_post; }
Where did you get it from, and what exactly is it supposed to do?
Best regards,
RikardFebruary 11, 2022 at 9:37 am #1340112This reply has been marked as private.February 11, 2022 at 11:16 am #1340130Hi,
Thanks for the update. So who wrote the function? Maybe that person could help you out with adjusting it?
Best regards,
RikardFebruary 11, 2022 at 11:53 am #1340140This reply has been marked as private.February 11, 2022 at 4:01 pm #1340172 -
AuthorPosts
- You must be logged in to reply to this topic.